]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Reduce number of messages sent in one test, the OS nondeterministically fails the...
authorMatt Joiner <anacrolix@gmail.com>
Sun, 24 May 2015 11:37:14 +0000 (21:37 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 24 May 2015 11:37:14 +0000 (21:37 +1000)
client_test.go

index 39118f61f87c6d607ba7a07d644e5912ab3de2f2..45cc5e01dfb9a7697f46cdcb3718be727298418c 100644 (file)
@@ -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() {