aboutsummaryrefslogtreecommitdiff
path: root/application_router_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'application_router_test.go')
-rw-r--r--application_router_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/application_router_test.go b/application_router_test.go
index 4225ab9..f4804e3 100644
--- a/application_router_test.go
+++ b/application_router_test.go
@@ -148,10 +148,12 @@ func NewRouterTestToolkit(t *testing.T, withSetup bool) *RouterTestToolkit {
wrapper := NewTestStorageWrapper(t)
wrapper.AddCollection(Settings)
- appContext, err := CreateApplicationContext(wrapper.Storage)
+ appContext, err := CreateApplicationContext(wrapper.Storage, "test")
require.NoError(t, err)
gin.SetMode(gin.ReleaseMode)
- router := CreateApplicationRouter(appContext)
+ notificationController := NewNotificationController(appContext)
+ go notificationController.Run()
+ router := CreateApplicationRouter(appContext, notificationController)
toolkit := RouterTestToolkit{
appContext: appContext,