kou commented on code in PR #5103:
URL: https://github.com/apache/arrow-adbc/pull/5103#discussion_r4778610958
##########
ruby/test/test-statement.rb:
##########
@@ -32,6 +32,30 @@ def setup
end
end
+ test("#execute: other threads run") do
+ ticks = 0
+ ticker = Thread.new do
+ loop do
+ ticks += 1
+ sleep(0.001)
+ end
+ end
+ begin
+ @statement.query(<<-SQL)
+WITH RECURSIVE n(i) AS (
+ SELECT 1
+ UNION ALL
+ SELECT i + 1 FROM n WHERE i < 5000000
+)
+SELECT count(*) FROM n
+ SQL
+ ensure
+ ticker.kill
+ ticker.join
+ end
+ assert_operator(ticks, :>, 10)
Review Comment:
Could you use power assert style for easy to debug on failure?
```suggestion
assert do
ticks > 10
end
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]