From bafbc2f882c73d348ceb14a30d0bb0e3a64c7c4f Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Fri, 10 May 2024 16:42:00 +0530 Subject: [PATCH] chore: possible fix for test fail in CI --- waku/v2/api/filter_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waku/v2/api/filter_test.go b/waku/v2/api/filter_test.go index 271a169b3..b2d45915e 100644 --- a/waku/v2/api/filter_test.go +++ b/waku/v2/api/filter_test.go @@ -56,6 +56,7 @@ func (s *FilterApiTestSuite) TestSubscribe() { for sub := range apiSub.subs { s.Log.Info("SubDetails:", zap.String("id", sub)) } + s.Log.Info("subs", zap.String("0", maps.Keys(apiSub.subs)[0]), zap.String("1", maps.Keys(apiSub.subs)[1])) s.Require().True(maps.Keys(apiSub.subs)[0] != maps.Keys(apiSub.subs)[1]) // Publish msg and confirm it's received twice because of multiplexing s.PublishMsg(&filter.WakuMsg{PubSubTopic: s.TestTopic, ContentTopic: s.TestContentTopic, Payload: "Test msg"}) @@ -67,7 +68,7 @@ func (s *FilterApiTestSuite) TestSubscribe() { } s.Require().Equal(cnt, 1) - time.Sleep(20 * time.Second) + time.Sleep(2 * time.Second) apiSub.Unsubscribe() for range apiSub.DataCh { }