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/service/service_plugin_test.go | |
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/service/service_plugin_test.go')
-rw-r--r-- | tests/plugins/service/service_plugin_test.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/plugins/service/service_plugin_test.go b/tests/plugins/service/service_plugin_test.go index 9e8d4453..8948a458 100644 --- a/tests/plugins/service/service_plugin_test.go +++ b/tests/plugins/service/service_plugin_test.go @@ -41,11 +41,6 @@ func TestServiceInit(t *testing.T) { // process interrupt error mockLogger.EXPECT().Error("process wait error", gomock.Any()).MinTimes(2) - mockLogger.EXPECT().Info("Hello 0\n The number is: 0\n").MinTimes(1) - mockLogger.EXPECT().Info("Hello 1\n The number is: 1\n").MinTimes(1) - mockLogger.EXPECT().Info("Hello 2\n The number is: 2\n").MinTimes(1) - mockLogger.EXPECT().Info("Hello 3\n The number is: 3\n").MinTimes(1) - mockLogger.EXPECT().Info("Hello 0").MinTimes(1) mockLogger.EXPECT().Info("Hello 1").MinTimes(1) mockLogger.EXPECT().Info("Hello 2").MinTimes(1) @@ -195,10 +190,11 @@ func TestServiceRestarts(t *testing.T) { mockLogger.EXPECT().Debug("worker constructed", "pid", gomock.Any()).AnyTimes() // process interrupt error - mockLogger.EXPECT().Error("process wait error", gomock.Any()).MinTimes(2) + mockLogger.EXPECT().Error("process wait error", gomock.Any()).MinTimes(1) // should not be more than Hello 0, because of restarts mockLogger.EXPECT().Info("Hello 0").MinTimes(1) + mockLogger.EXPECT().Info("Hello 1").AnyTimes() err = cont.RegisterAll( cfg, |