From: Matt Joiner Date: Sun, 24 May 2015 11:37:14 +0000 (+1000) Subject: Reduce number of messages sent in one test, the OS nondeterministically fails the... X-Git-Tag: v1.0.0~1175 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b34b5839191917f4bd1e9b1b44611dc9f115eda9;p=btrtrc.git Reduce number of messages sent in one test, the OS nondeterministically fails the test sometimes otherwise --- 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() {