@@ -20,13 +20,12 @@ func TestRestoreMutedObjects(t *testing.T) {
2020
2121 var sourceID int64
2222 err := utils .RunInTx (ctx , db , func (tx * sqlx.Tx ) error {
23- args := map [string ]interface {}{
24- "type" : "notifications" ,
25- "name" : "Icinga Notifications" ,
26- "insecure" : "n" ,
23+ args := map [string ]any {
24+ "type" : "notifications" ,
25+ "name" : "Icinga Notifications" ,
2726 }
2827 // We can't use config.Source here unfortunately due to cyclic import error!
29- id , err := utils .InsertAndFetchId (ctx , tx , `INSERT INTO source (type, name, icinga2_insecure_tls ) VALUES (:type, :name, :insecure )` , args )
28+ id , err := utils .InsertAndFetchId (ctx , tx , `INSERT INTO source (type, name) VALUES (:type, :name)` , args )
3029 require .NoError (t , err , "populating source table should not fail" )
3130
3231 sourceID = id
@@ -66,7 +65,7 @@ func TestRestoreMutedObjects(t *testing.T) {
6665 assert .Equal (t , o .ExtraTags , objFromCache .ExtraTags , "objects tags should match" )
6766 }
6867
69- // Purge all newly created objects and its relations not mes up local database tests.
68+ // Purge all newly created objects and their relations not mes up local database tests.
7069 _ , err = db .NamedExecContext (ctx , `DELETE FROM object_id_tag WHERE object_id = :id` , o )
7170 assert .NoError (t , err , "deleting object id tags should not fail" )
7271
0 commit comments