diff --git a/backend/internal/core/services/main_test.go b/backend/internal/core/services/main_test.go index c79bfcf..872d3f3 100644 --- a/backend/internal/core/services/main_test.go +++ b/backend/internal/core/services/main_test.go @@ -6,6 +6,7 @@ import ( "os" "testing" + "github.com/hay-kot/homebox/backend/internal/core/services/reporting/eventbus" "github.com/hay-kot/homebox/backend/internal/data/ent" "github.com/hay-kot/homebox/backend/internal/data/repo" "github.com/hay-kot/homebox/backend/pkgs/faker" @@ -58,7 +59,7 @@ func TestMain(m *testing.M) { } tClient = client - tRepos = repo.New(tClient, os.TempDir()+"/homebox") + tRepos = repo.New(tClient, eventbus.New(), os.TempDir()+"/homebox") tSvc = New(tRepos) defer client.Close() diff --git a/backend/internal/data/repo/main_test.go b/backend/internal/data/repo/main_test.go index cfb1630..ab79242 100644 --- a/backend/internal/data/repo/main_test.go +++ b/backend/internal/data/repo/main_test.go @@ -6,6 +6,7 @@ import ( "os" "testing" + "github.com/hay-kot/homebox/backend/internal/core/services/reporting/eventbus" "github.com/hay-kot/homebox/backend/internal/data/ent" "github.com/hay-kot/homebox/backend/pkgs/faker" _ "github.com/mattn/go-sqlite3" @@ -49,7 +50,7 @@ func TestMain(m *testing.M) { } tClient = client - tRepos = New(tClient, os.TempDir()) + tRepos = New(tClient, eventbus.New(), os.TempDir()) defer client.Close() bootstrap()