Skip to content
Snippets Groups Projects
Commit de244656 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Fix groupChat test to use longer timeout so it is less likely to fail

parent a871f78f
No related branches found
No related tags found
1 merge request!700Fix groupChat test to use longer timeout so it is less likely to fail
......@@ -8,6 +8,12 @@
package groupChat
import (
"math/rand"
"reflect"
"strings"
"testing"
"time"
"github.com/cloudflare/circl/dh/sidh"
"github.com/golang/protobuf/proto"
"gitlab.com/elixxir/client/v4/catalog"
......@@ -15,11 +21,6 @@ import (
"gitlab.com/elixxir/client/v4/e2e/receive"
gs "gitlab.com/elixxir/client/v4/groupChat/groupStore"
util "gitlab.com/elixxir/client/v4/storage/utility"
"math/rand"
"reflect"
"strings"
"testing"
"time"
)
// Tests that the correct group is received from the request.
......@@ -80,7 +81,7 @@ func TestRequestListener_Hear(t *testing.T) {
t.Errorf("receiveRequest() failed to return the expected group."+
"\nexpected: %#v\nreceived: %#v", g, receivedGrp)
}
case <-time.NewTimer(5 * time.Millisecond).C:
case <-time.NewTimer(500 * time.Millisecond).C:
t.Error("Timed out while waiting for callback.")
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment