aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/end2end/multiple_killed_watching_threads_driver.rb
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2018-04-05 03:12:27 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2018-04-05 03:49:53 -0700
commitd3594987dfc612e24fb21db8f2604e9d5bd33a48 (patch)
treebcfc933c15e9ade9d23f20ac101f6a12b6ab70bf /src/ruby/end2end/multiple_killed_watching_threads_driver.rb
parent33b225616c69962dbb7bfc31db271d2c74c8e7a5 (diff)
fix race whereby we can call watch_connectivity_state on a destroyed channel
Diffstat (limited to 'src/ruby/end2end/multiple_killed_watching_threads_driver.rb')
-rwxr-xr-xsrc/ruby/end2end/multiple_killed_watching_threads_driver.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ruby/end2end/multiple_killed_watching_threads_driver.rb b/src/ruby/end2end/multiple_killed_watching_threads_driver.rb
index 8f078cfbed..8ec2073d98 100755
--- a/src/ruby/end2end/multiple_killed_watching_threads_driver.rb
+++ b/src/ruby/end2end/multiple_killed_watching_threads_driver.rb
@@ -54,8 +54,14 @@ def run_multiple_killed_watches(num_threads, sleep_time)
end
def main
+ STDERR.puts '10 iterations, sleep 0.1 before killing thread'
run_multiple_killed_watches(10, 0.1)
+ STDERR.puts '1000 iterations, sleep 0.001 before killing thread'
run_multiple_killed_watches(1000, 0.001)
+ STDERR.puts '10000 iterations, sleep 0.00001 before killing thread'
+ run_multiple_killed_watches(10_000, 0.00001)
+ STDERR.puts '20000 iterations, sleep 0.00001 before killing thread'
+ run_multiple_killed_watches(20_000, 0.00001)
end
main