Fix string(int) issues for Go 1.15 compatibility (#2286)

This commit is contained in:
James Alseth 2020-08-19 13:36:36 -07:00 committed by GitHub
parent c2d8dccb8d
commit b67cfc479b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ func testLabels(t *testing.T, db kolide.Datastore) {
var host *kolide.Host
var err error
for i := 0; i < 10; i++ {
host, err = db.EnrollHost(string(i), string(i), "default")
host, err = db.EnrollHost(fmt.Sprint(i), fmt.Sprint(i), "default")
require.Nil(t, err, "enrollment should succeed")
hosts = append(hosts, *host)
}