Skip to content

Commit 59ecd77

Browse files
committed
Add additional assertion to ensure that timings are within a range
1 parent 77906c4 commit 59ecd77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_integration_pending.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def test_busy_timeout_blocks_gvl
128128
db2.close
129129

130130
assert_operator time.real, :>=, 2
131+
assert_operator time.real, :<, 3
131132
end
132133

133134
def test_busy_handler_timeout_releases_gvl
@@ -145,5 +146,6 @@ def test_busy_handler_timeout_releases_gvl
145146
db2.close
146147

147148
assert_operator time.real, :>=, 1
149+
assert_operator time.real, :<, 2
148150
end
149151
end

0 commit comments

Comments
 (0)