fix(test): events.NewBus → events.New (correct function name)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
cd3f4ec95a
commit
a5a5febdf6
2 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ func TestMain(m *testing.M) {
|
|||
hub := realtime.NewHub()
|
||||
go hub.Run()
|
||||
|
||||
bus := events.NewBus()
|
||||
bus := events.New()
|
||||
router := NewRouter(pool, hub, bus)
|
||||
testServer = httptest.NewServer(router)
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func TestMain(m *testing.M) {
|
|||
queries := db.New(pool)
|
||||
hub := realtime.NewHub()
|
||||
go hub.Run()
|
||||
bus := events.NewBus()
|
||||
bus := events.New()
|
||||
testHandler = New(queries, pool, hub, bus)
|
||||
testPool = pool
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue