summaryrefslogtreecommitdiff
path: root/plugins/reload
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-16 14:30:54 +0300
committerValery Piashchynski <[email protected]>2020-12-16 14:30:54 +0300
commit4f9b2aacd77d4bcddccda04abf9d18c649f69a02 (patch)
tree5b7b34c8cc402d90f3fa2bfbf3e9904ec6331f0d /plugins/reload
parentaa55cf55d80d2dd21bf6063feb901a34051a1fcd (diff)
Correct issue with logger EXPECT
Diffstat (limited to 'plugins/reload')
-rw-r--r--plugins/reload/tests/reload_plugin_test.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/reload/tests/reload_plugin_test.go b/plugins/reload/tests/reload_plugin_test.go
index c49609f1..9f1e5517 100644
--- a/plugins/reload/tests/reload_plugin_test.go
+++ b/plugins/reload/tests/reload_plugin_test.go
@@ -39,8 +39,11 @@ func TestReloadInit(t *testing.T) {
Prefix: "rr",
}
+ // try to remove, skip error
+ assert.NoError(t, freeResources(testDir))
err = os.Mkdir(testDir, 0755)
assert.NoError(t, err)
+
defer func() {
assert.NoError(t, freeResources(testDir))
}()
@@ -49,7 +52,10 @@ func TestReloadInit(t *testing.T) {
mockLogger := mocks.NewMockLogger(controller)
mockLogger.EXPECT().Debug("file was created", "path", gomock.Any(), "name", "file.txt", "size", gomock.Any()).Times(2)
- mockLogger.EXPECT().Info("Resetting http plugin").Times(1)
+ mockLogger.EXPECT().Info("HTTP plugin got restart request. Restarting...").Times(1)
+ mockLogger.EXPECT().Info("HTTP workers Pool successfully restarted").Times(1)
+ mockLogger.EXPECT().Info("HTTP listeners successfully re-added").Times(1)
+ mockLogger.EXPECT().Info("HTTP plugin successfully restarted").Times(1)
err = cont.RegisterAll(
cfg,