From b34b5839191917f4bd1e9b1b44611dc9f115eda9 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 24 May 2015 21:37:14 +1000 Subject: [PATCH] Reduce number of messages sent in one test, the OS nondeterministically fails the test sometimes otherwise --- client_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client_test.go b/client_test.go index 39118f61..45cc5e01 100644 --- a/client_test.go +++ b/client_test.go @@ -173,7 +173,9 @@ func TestUTPRawConn(t *testing.T) { defer peer.Close() msgsReceived := 0 - const N = 5000 // How many messages to send. + // How many messages to send. I've set this to double the channel buffer + // size in the raw packetConn. + const N = 200 readerStopped := make(chan struct{}) // The reader goroutine. go func() { -- 2.48.1