diff options
author | Valery Piashchynski <[email protected]> | 2021-08-13 02:38:15 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-13 02:38:15 +0300 |
commit | 8cdac2daf2fc4a1a95ddebca585f4ec38beff210 (patch) | |
tree | 843b5e5f5dd9a1bca68a420e283642fc27fbb5c8 /tests/plugins/gzip | |
parent | de378e7698db896b8fd16f628c7d89689c8371d0 (diff) |
Update go.mod dependencies to the most recent version.
Fix tests according to the new mocks.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/gzip')
-rw-r--r-- | tests/plugins/gzip/plugin_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/plugins/gzip/plugin_test.go b/tests/plugins/gzip/plugin_test.go index 5612ec94..1c6ab887 100644 --- a/tests/plugins/gzip/plugin_test.go +++ b/tests/plugins/gzip/plugin_test.go @@ -117,10 +117,9 @@ func TestMiddlewareNotExist(t *testing.T) { controller := gomock.NewController(t) mockLogger := mocks.NewMockLogger(controller) - mockLogger.EXPECT().Warn("requested middleware does not exist", "requested", "foo").AnyTimes() + mockLogger.EXPECT().Warn("requested middleware does not exist", "requested", "foo").MinTimes(1) mockLogger.EXPECT().Debug("worker constructed", "pid", gomock.Any()).AnyTimes() mockLogger.EXPECT().Debug("worker destructed", "pid", gomock.Any()).AnyTimes() - mockLogger.EXPECT().Info("scan command", gomock.Any()).Times(1) mockLogger.EXPECT().Error(gomock.Any(), gomock.Any(), gomock.Any()).AnyTimes() // placeholder for the workerlogerror err = cont.RegisterAll( |