mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
server/datastore: fix missing error checks (#2194)
Fixing these missing checks did not identify any broken tests or code.
This commit is contained in:
parent
c19c984525
commit
bc7c5704d4
2 changed files with 3 additions and 0 deletions
|
|
@ -149,6 +149,7 @@ func testIdempotentDeleteHost(t *testing.T, ds kolide.Datastore) {
|
|||
require.NotNil(t, host)
|
||||
id := host.ID
|
||||
err = ds.DeleteHost(host.ID)
|
||||
assert.Nil(t, err)
|
||||
|
||||
host, err = ds.Host(host.ID)
|
||||
assert.NotNil(t, err)
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ func testUnicode(t *testing.T, ds kolide.Datastore) {
|
|||
require.Nil(t, err)
|
||||
|
||||
host, err = ds.Host(host.ID)
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, "🍌", host.HostName)
|
||||
|
||||
user, err := ds.NewUser(&kolide.User{Username: "🍱", Password: []byte{}})
|
||||
|
|
@ -47,5 +48,6 @@ func testUnicode(t *testing.T, ds kolide.Datastore) {
|
|||
pack := test.NewPack(t, ds, "👨🏾🚒")
|
||||
|
||||
pack, err = ds.Pack(pack.ID)
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, "👨🏾🚒", pack.Name)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue