From 5d802abe9e6e78e1fc5980228f361fc19138c8da Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Fri, 4 May 2018 11:08:04 +0200 Subject: [PATCH] Increase timeouts in order to accommodate `-race` flag - Fixes https://jenkins.status.im/job/status-go/job/race-check/56/console --- services/shhext/service_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/shhext/service_test.go b/services/shhext/service_test.go index d3e1bdf32..dcee52eb2 100644 --- a/services/shhext/service_test.go +++ b/services/shhext/service_test.go @@ -96,7 +96,7 @@ func (s *ShhExtSuite) TestPostMessageWithConfirmation() { select { case confirmed := <-mock.confirmations: s.Equal(hash, confirmed) - case <-time.After(time.Second): + case <-time.After(5 * time.Second): s.Fail("timed out while waiting for confirmation") } } @@ -123,7 +123,7 @@ func (s *ShhExtSuite) TestWaitMessageExpired() { s.Equal(hash, expired) case confirmed := <-mock.confirmations: s.Fail("unexpected confirmation for hash", confirmed) - case <-time.After(2 * time.Second): + case <-time.After(10 * time.Second): s.Fail("timed out while waiting for confirmation") } }