diff --git a/internal/events/router_test.go b/internal/events/router_test.go index 06a76beb5..5e7ed08b0 100644 --- a/internal/events/router_test.go +++ b/internal/events/router_test.go @@ -25,7 +25,7 @@ func TestRouterRoute(t *testing.T) { require.NoError(t, daemon.LoadConfig("../../config.example.yml"), "loading config file should not fail") // Insert a dummy sources for our test cases! - source := config.Source{ID: 1, Type: "notifications", Name: "Icinga Notifications", Icinga2InsecureTLS: types.Bool{Bool: false, Valid: true}} + source := config.Source{ID: 10, Type: "notifications", Name: "Icinga Notifications", Icinga2InsecureTLS: types.Bool{Bool: false, Valid: true}} stmt, _ := db.BuildInsertStmt(source) _, err := db.NamedExecContext(ctx, stmt, source) require.NoError(t, err, "populating source table should not fail") @@ -124,7 +124,7 @@ func TestRouterRoute(t *testing.T) { // makeEvent creates a fully initialised event.Event of the given type and severity. func makeEvent(t *testing.T, typ string, severity event.Severity) *event.Event { return &event.Event{ - SourceId: 1, + SourceId: 10, Name: testutils.MakeRandomString(t), URL: "https://localhost/icingaweb2/icingadb", Type: typ,