fix nil check in tests

This commit is contained in:
Hayden 2022-10-20 11:18:52 -08:00
parent f8140ac60e
commit d41ce08400

View file

@ -72,7 +72,7 @@ func TestItemsRepository_RecursiveRelationships(t *testing.T) {
// Check Parent ID
updated, err = tRepos.Items.GetOne(context.Background(), child.ID)
assert.NoError(t, err)
assert.Equal(t, uuid.Nil, updated.Parent.ID)
assert.Nil(t, updated.Parent)
}
}