diff --git a/backend/app/cmd/server_test.go b/backend/app/cmd/server_test.go index 98a636da..9faaef3f 100644 --- a/backend/app/cmd/server_test.go +++ b/backend/app/cmd/server_test.go @@ -654,7 +654,10 @@ func prepServerApp(t *testing.T, fn func(o ServerCommand) ServerCommand) (*serve os.Remove(cmd.Store.Bolt.Path + "/remark.db") - // create app + return createAppFromCmd(t, cmd) +} + +func createAppFromCmd(t *testing.T, cmd ServerCommand) (*serverApp, context.Context, context.CancelFunc) { app, err := cmd.newServerApp() require.NoError(t, err)