Browse Source

Less strict theshold for timing dependent test

Rod Hynes 4 years ago
parent
commit
5af4678789
1 changed files with 2 additions and 2 deletions
  1. 2 2
      psiphon/common/obfuscator/passthrough_test.go

+ 2 - 2
psiphon/common/obfuscator/passthrough_test.go

@@ -104,8 +104,8 @@ func TestTLSPassthrough(t *testing.T) {
 				timeDiff = -timeDiff
 			}
 
-			if timeDiff.Microseconds() > 100 {
-				t.Fatalf("unexpected elapsed time difference")
+			if timeDiff.Microseconds() > 500 {
+				t.Fatalf("unexpected elapsed time difference: %v", timeDiff)
 			}
 
 			// test: invalid message length and elapsed time