1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Dont fail during time delta
The test suite uses method timing information as part of the test
cases. This makes the success of the package non-deterministic.
Instead of making the test fail, this patch simply logs issue.
Author: Alexandre Viau <aviau@debian.org>
Last-Update: 2016-06-22
Bug-Debian: http://bugs.debian.org/795515
--- a/toxics/latency_test.go
+++ b/toxics/latency_test.go
@@ -20,7 +20,7 @@
diff *= -1
}
if diff > delta {
- t.Errorf("[%s] Time was more than %v off: got %v expected %v", message, delta, actual, expected)
+ t.Logf("[%s] Time was more than %v off: got %v expected %v", message, delta, actual, expected)
} else {
t.Logf("[%s] Time was correct: %v (expected %v)", message, actual, expected)
}
|