From f176ca188785379d600242e2767139f80acf5e50 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Wed, 2 Aug 2023 08:39:32 -0500 Subject: [PATCH] fix test construction --- backend/internal/core/services/main_test.go | 3 ++- backend/internal/data/repo/main_test.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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()