Skip to content

Commit

Permalink
fix: increase test timeout
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
  • Loading branch information
gfanton committed Mar 30, 2022
1 parent da2acaf commit 8f80e98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions go/pkg/bertyreplication/services_replication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ func TestReplicationService_Flow(t *testing.T) {

for i := 0; i < messageAmount; {
select {
case <-time.After(time.Second * 2):
case <-time.After(time.Second * 5):
cerr <- fmt.Errorf("timeout while waiting for event")
return
case evt = <-sub2a.Out():
Expand Down Expand Up @@ -558,7 +558,7 @@ func TestReplicationService_Flow(t *testing.T) {

for i := 0; i < messageAmount; {
select {
case <-time.After(time.Second * 2):
case <-time.After(time.Second * 5):
cerr <- fmt.Errorf("timeout while waiting for event")
return
case evt = <-sub2a.Out():
Expand All @@ -573,6 +573,9 @@ func TestReplicationService_Flow(t *testing.T) {
err = mn.LinkAll()
require.NoError(t, err)

err = mn.ConnectAllButSelf()
require.NoError(t, err)

err = <-cerr
require.NoError(t, err)

Expand Down

0 comments on commit 8f80e98

Please sign in to comment.