From 5aea2b99955e2b8b4f5724e6c4c7e696a894651e Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 19 Jan 2021 17:17:40 +0300 Subject: Add worker_destruct handling in the mocked logger --- tests/plugins/static/static_plugin_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/plugins/static') 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() -- cgit v1.2.3