diff --git a/pkg/db/test.go b/pkg/db/test.go index 6adff34a2..2c0beb7b1 100644 --- a/pkg/db/test.go +++ b/pkg/db/test.go @@ -73,7 +73,7 @@ func InitTestFixtures(tablenames ...string) (err error) { return nil } -// AssertDBExists checks and asserts the existance of certain entries in the db +// AssertDBExists checks and asserts the existence of certain entries in the db func AssertDBExists(t *testing.T, table string, values map[string]interface{}) { v := make(map[string]interface{}) exists, err := x.Table(table).Where(values).Get(&v) @@ -81,7 +81,7 @@ func AssertDBExists(t *testing.T, table string, values map[string]interface{}) { assert.True(t, exists, fmt.Sprintf("Entries %v do not exist in table %s", values, table)) } -// AssertDBMissing checks and asserts the nonexistance of certain entries in the db +// AssertDBMissing checks and asserts the nonexiste nce of certain entries in the db func AssertDBMissing(t *testing.T, table string, values map[string]interface{}) { v := make(map[string]interface{}) exists, err := x.Table(table).Where(values).Exist(&v)