diff options
author | 2018-04-05 03:12:27 -0700 | |
---|---|---|
committer | 2018-04-05 03:49:53 -0700 | |
commit | d3594987dfc612e24fb21db8f2604e9d5bd33a48 (patch) | |
tree | bcfc933c15e9ade9d23f20ac101f6a12b6ab70bf /src/ruby/end2end/multiple_killed_watching_threads_driver.rb | |
parent | 33b225616c69962dbb7bfc31db271d2c74c8e7a5 (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-x | src/ruby/end2end/multiple_killed_watching_threads_driver.rb | 6 |
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 |