Add function createAppFromCmd to server_test.go

This commit is contained in:
vdimir
2020-08-26 12:39:31 -05:00
committed by Umputun
parent 14bcbfa901
commit 295191955a
+4 -1
View File
@@ -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)