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:
Naiyuan Qing 2026-03-25 16:54:18 +08:00
parent cd3f4ec95a
commit a5a5febdf6
2 changed files with 2 additions and 2 deletions

View file

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

View file

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