summaryrefslogtreecommitdiff
path: root/plugins/resetter
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-18 11:08:09 +0300
committerValery Piashchynski <[email protected]>2020-11-18 11:08:09 +0300
commita136253bc88c1591cbab962af0506ff4c4cefc4b (patch)
tree6a6d173a85b31b436ce323044cfc066b50d8ba37 /plugins/resetter
parent46bb1d72ef7b43d253cc84393f054f05365bd22f (diff)
Add Resetter tests to the CI and Makefile
Diffstat (limited to 'plugins/resetter')
-rw-r--r--plugins/resetter/tests/resetter_test.go4
-rw-r--r--plugins/resetter/tests/test_plugin.go2
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
}