Skip to content

Commit b730d85

Browse files
committed
Fix unrelated test failing
1 parent 2d17fc3 commit b730d85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/helpers/time_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ def time_travel(val)
66
now_timestamp = Time.now
77

88
new_monotonic = now_monotonic + val
9+
# Support both old and new signatures for Process.clock_gettime
910
Process.stubs(:clock_gettime).with(Process::CLOCK_MONOTONIC).returns(new_monotonic)
11+
Process.stubs(:clock_gettime).with(Process::CLOCK_MONOTONIC, :float_millisecond).returns(new_monotonic * 1000)
1012

1113
new_timestamp = now_timestamp + val
1214
Time.stubs(:now).returns(new_timestamp)

0 commit comments

Comments
 (0)