summaryrefslogtreecommitdiff
path: root/tests/plugins/static
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-19 17:17:40 +0300
committerValery Piashchynski <[email protected]>2021-01-19 17:17:40 +0300
commit5aea2b99955e2b8b4f5724e6c4c7e696a894651e (patch)
tree858469341427a7f879141966ab9b6dfe259488da /tests/plugins/static
parent26f9d35e18ef79d79a5609c6c68f1b6ad38c7aed (diff)
Add worker_destruct handling in the mocked logger
Diffstat (limited to 'tests/plugins/static')
-rw-r--r--tests/plugins/static/static_plugin_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/plugins/static/static_plugin_test.go b/tests/plugins/static/static_plugin_test.go
index d9829788..49721e44 100644
--- a/tests/plugins/static/static_plugin_test.go
+++ b/tests/plugins/static/static_plugin_test.go
@@ -303,6 +303,7 @@ func TestStaticFilesForbid(t *testing.T) {
controller := gomock.NewController(t)
mockLogger := mocks.NewMockLogger(controller)
+ mockLogger.EXPECT().Debug("worker destructed", "pid", gomock.Any()).AnyTimes()
mockLogger.EXPECT().Debug("worker constructed", "pid", gomock.Any()).AnyTimes()
mockLogger.EXPECT().Debug("", "remote", gomock.Any(), "ts", gomock.Any(), "resp.status", gomock.Any(), "method", gomock.Any(), "uri", gomock.Any()).AnyTimes()
mockLogger.EXPECT().Error("file open error", "error", gomock.Any()).AnyTimes()