fix test construction

This commit is contained in:
Hayden 2023-08-02 08:39:32 -05:00
parent eb6a13c826
commit f176ca1887
No known key found for this signature in database
GPG key ID: 17CF79474E257545
2 changed files with 4 additions and 2 deletions

View file

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

View file

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