summaryrefslogtreecommitdiff
path: root/tests/plugins/broadcast
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-13 02:38:15 +0300
committerValery Piashchynski <[email protected]>2021-08-13 02:38:15 +0300
commit8cdac2daf2fc4a1a95ddebca585f4ec38beff210 (patch)
tree843b5e5f5dd9a1bca68a420e283642fc27fbb5c8 /tests/plugins/broadcast
parentde378e7698db896b8fd16f628c7d89689c8371d0 (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/broadcast')
-rw-r--r--tests/plugins/broadcast/broadcast_plugin_test.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/plugins/broadcast/broadcast_plugin_test.go b/tests/plugins/broadcast/broadcast_plugin_test.go
index d8bedf29..93c310e3 100644
--- a/tests/plugins/broadcast/broadcast_plugin_test.go
+++ b/tests/plugins/broadcast/broadcast_plugin_test.go
@@ -205,8 +205,7 @@ func TestBroadcastSameSubscriber(t *testing.T) {
cfg,
&broadcast.Plugin{},
&rpcPlugin.Plugin{},
- &logger.ZapLogger{},
- // mockLogger,
+ mockLogger,
&server.Plugin{},
&redis.Plugin{},
&websockets.Plugin{},
@@ -279,6 +278,8 @@ func TestBroadcastSameSubscriber(t *testing.T) {
t.Run("PublishHelloFoo3", BroadcastPublishFoo3("6002"))
t.Run("PublishAsyncHelloFooFoo2Foo3", BroadcastPublishAsyncFooFoo2Foo3("6002"))
+ time.Sleep(time.Second * 4)
+
stopCh <- struct{}{}
wg.Wait()
@@ -316,8 +317,7 @@ func TestBroadcastSameSubscriberGlobal(t *testing.T) {
cfg,
&broadcast.Plugin{},
&rpcPlugin.Plugin{},
- &logger.ZapLogger{},
- // mockLogger,
+ mockLogger,
&server.Plugin{},
&redis.Plugin{},
&websockets.Plugin{},
@@ -390,6 +390,8 @@ func TestBroadcastSameSubscriberGlobal(t *testing.T) {
t.Run("PublishHelloFoo3", BroadcastPublishFoo3("6003"))
t.Run("PublishAsyncHelloFooFoo2Foo3", BroadcastPublishAsyncFooFoo2Foo3("6003"))
+ time.Sleep(time.Second * 4)
+
stopCh <- struct{}{}
wg.Wait()