We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee81e7 commit 7ea2082Copy full SHA for 7ea2082
spec/mspec/lib/mspec/matchers/be_close.rb
@@ -1,4 +1,6 @@
1
TOLERANCE = 0.00003 unless Object.const_defined?(:TOLERANCE)
2
+# To account for GC, context switches, other processes, load, etc.
3
+TIME_TOLERANCE = 20.0 unless Object.const_defined?(:TIME_TOLERANCE)
4
5
class BeCloseMatcher
6
def initialize(expected, tolerance)
0 commit comments