Fix lint
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2020-09-08 23:55:20 +02:00
parent b3aeb16403
commit 8a3a6ae044
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -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)