From d5dc4308433b53020ef1c73fd7a4e95025ece326 Mon Sep 17 00:00:00 2001 From: Kifen Date: Thu, 23 Jan 2020 22:50:43 +0000 Subject: [PATCH] fix test --- pkg/visor/rpc_test.go | 2 +- pkg/visor/visor_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/visor/rpc_test.go b/pkg/visor/rpc_test.go index f80ac9bae..fb0ff3b66 100644 --- a/pkg/visor/rpc_test.go +++ b/pkg/visor/rpc_test.go @@ -168,7 +168,7 @@ func TestStartStopApp(t *testing.T) { } appArgs1 := append([]string{filepath.Join(node.dir(), app)}, apps["foo"].Args...) appPID1 := appcommon.ProcID(10) - pm.On("Run", mock.Anything, appCfg1, appArgs1, mock.Anything, mock.Anything). + pm.On("Start", mock.Anything, appCfg1, appArgs1, mock.Anything, mock.Anything). Return(appPID1, testhelpers.NoErr) pm.On("Wait", app).Return(testhelpers.NoErr) pm.On("Stop", app).Return(testhelpers.NoErr) diff --git a/pkg/visor/visor_test.go b/pkg/visor/visor_test.go index 58eb44e2e..12acbdcf1 100644 --- a/pkg/visor/visor_test.go +++ b/pkg/visor/visor_test.go @@ -124,7 +124,7 @@ func TestNodeStartClose(t *testing.T) { } appArgs1 := append([]string{filepath.Join(node.dir(), apps["skychat"].App)}, apps["skychat"].Args...) appPID1 := appcommon.ProcID(10) - pm.On("Run", mock.Anything, appCfg1, appArgs1, mock.Anything, mock.Anything). + pm.On("Start", mock.Anything, appCfg1, appArgs1, mock.Anything, mock.Anything). Return(appPID1, testhelpers.NoErr) pm.On("Wait", apps["skychat"].App).Return(testhelpers.NoErr)