Skip to content

Commit a8d1715

Browse files
committed
Make the tests more expressive to make failures (why) easier to debug (hopefully)
1 parent e84b777 commit a8d1715

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/test_integration_pending.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ def test_busy_timeout_blocks_gvl
129129
begin
130130
db2 = SQLite3::Database.open( "test.db" )
131131
db2.busy_timeout 1000
132-
# db2.busy_handler do |count|
133-
# sleep 0.001
134-
# end
135132
db2.transaction( :exclusive ) do
136133
sleep 0.01
137134
end
@@ -144,7 +141,7 @@ def test_busy_timeout_blocks_gvl
144141
[t1, t2].each(&:join)
145142
end
146143

147-
assert time.real >= 1
144+
assert_operator time.real, :>=, 1
148145
end
149146

150147
def test_busy_handler_timeout_releases_gvl
@@ -175,6 +172,6 @@ def test_busy_handler_timeout_releases_gvl
175172
[t1, t2].each(&:join)
176173
end
177174

178-
assert time.real < 1
175+
assert_operator time.real, :<, 1
179176
end
180177
end

0 commit comments

Comments
 (0)