diff options
Diffstat (limited to 'plugins/resetter')
-rw-r--r-- | plugins/resetter/tests/resetter_test.go | 4 | ||||
-rw-r--r-- | plugins/resetter/tests/test_plugin.go | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/resetter/tests/resetter_test.go b/plugins/resetter/tests/resetter_test.go index 03accc67..ff5a7847 100644 --- a/plugins/resetter/tests/resetter_test.go +++ b/plugins/resetter/tests/resetter_test.go @@ -53,7 +53,7 @@ func TestInformerInit(t *testing.T) { tt := time.NewTimer(time.Second * 15) - t.Run("InformerRpcTest", informerRpcTest) + t.Run("InformerRpcTest", resetterRpcTest) for { select { @@ -80,7 +80,7 @@ func TestInformerInit(t *testing.T) { } } -func informerRpcTest(t *testing.T) { +func resetterRpcTest(t *testing.T) { conn, err := net.Dial("tcp", "127.0.0.1:6001") assert.NoError(t, err) client := rpc.NewClientWithCodec(goridge.NewClientCodec(conn)) diff --git a/plugins/resetter/tests/test_plugin.go b/plugins/resetter/tests/test_plugin.go index 6dc311d6..9f48a43f 100644 --- a/plugins/resetter/tests/test_plugin.go +++ b/plugins/resetter/tests/test_plugin.go @@ -60,5 +60,7 @@ func (p1 *Plugin1) Reset() error { panic(err) } + _ = pool + return nil } |