Skip to content

Commit

Permalink
fix: increase timeout to avoid false positive on ci
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Apr 20, 2023
1 parent 7e86c9b commit 46b4708
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion store_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func Test_AddMessage_ListMessages_manually_supplying_secrets(t *testing.T) {

require.Equal(t, 1, countEntries(out))

watcherCtx, watcherCancel := context.WithTimeout(ctx, time.Second*2)
watcherCtx, watcherCancel := context.WithTimeout(ctx, time.Second*5)
chSub, err := peers[1].GC.MessageStore().EventBus().Subscribe(new(protocoltypes.GroupMessageEvent))
require.NoError(t, err)
defer chSub.Close()
Expand All @@ -71,6 +71,7 @@ func Test_AddMessage_ListMessages_manually_supplying_secrets(t *testing.T) {
case <-watcherCtx.Done():
return
}

c, err := peers[1].GC.MessageStore().ListEvents(watcherCtx, nil, nil, false)
if !assert.NoError(t, err) {
watcherCancel()
Expand Down

0 comments on commit 46b4708

Please sign in to comment.