From a136253bc88c1591cbab962af0506ff4c4cefc4b Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 18 Nov 2020 11:08:09 +0300 Subject: Add Resetter tests to the CI and Makefile --- plugins/resetter/tests/resetter_test.go | 4 ++-- plugins/resetter/tests/test_plugin.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins') 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 } -- cgit v1.2.3