Skip to content

Commit 2951919

Browse files
vdimirumputun
authored andcommitted
Add function createAppFromCmd to server_test.go
1 parent 14bcbfa commit 2951919

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/app/cmd/server_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,10 @@ func prepServerApp(t *testing.T, fn func(o ServerCommand) ServerCommand) (*serve
654654

655655
os.Remove(cmd.Store.Bolt.Path + "/remark.db")
656656

657-
// create app
657+
return createAppFromCmd(t, cmd)
658+
}
659+
660+
func createAppFromCmd(t *testing.T, cmd ServerCommand) (*serverApp, context.Context, context.CancelFunc) {
658661
app, err := cmd.newServerApp()
659662
require.NoError(t, err)
660663

0 commit comments

Comments
 (0)