From 7f4b62d890695320c338c37f03ffa2d065c47b20 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 18 Feb 2016 09:36:19 -0800 Subject: [PATCH] Drop the retransmit timeout on the lossy connection test. Since this is a test to localhost, a 10ms RTO is more than enough, and speeds up the test 10x. --- tftp/interop_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tftp/interop_test.go b/tftp/interop_test.go index bf1fcec..5240688 100644 --- a/tftp/interop_test.go +++ b/tftp/interop_test.go @@ -56,7 +56,7 @@ func TestInterop(t *testing.T) { TransferLog: transferLog, // Lower block size to send more packets MaxBlockSize: 500, - WriteTimeout: 100 * time.Millisecond, + WriteTimeout: 10 * time.Millisecond, // 10% loss rate until we've dropped 5 packets Dial: lossyDialer(10, 5), },