Skip to content
Snippets Groups Projects
Commit 9efcc3f3 authored by Lars Kanis's avatar Lars Kanis
Browse files

Remove sleep in GVL test, to better trigger errors in the GVL wrapping.

parent 6be76a6f
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,6 @@ class TC_FXJPGImage < Fox::TestCase ...@@ -17,7 +17,6 @@ class TC_FXJPGImage < Fox::TestCase
count = 0 count = 0
th = Thread.new do th = Thread.new do
loop do loop do
sleep 0.001
count += 1 count += 1
end end
end end
...@@ -30,7 +29,7 @@ class TC_FXJPGImage < Fox::TestCase ...@@ -30,7 +29,7 @@ class TC_FXJPGImage < Fox::TestCase
outfile.takeBuffer outfile.takeBuffer
end end
assert_operator(count, :>=, 10) assert_operator(count, :>=, 1000000)
assert_operator(jpeg_data.bytesize, :>=, 1000) assert_operator(jpeg_data.bytesize, :>=, 1000)
count = 0 count = 0
...@@ -43,6 +42,6 @@ class TC_FXJPGImage < Fox::TestCase ...@@ -43,6 +42,6 @@ class TC_FXJPGImage < Fox::TestCase
assert_equal 4000, img.width assert_equal 4000, img.width
assert_equal 3000, img.height assert_equal 3000, img.height
assert_operator(count, :>=, 10) assert_operator(count, :>=, 1000000)
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment