diff options
author | Alexander Polcyn <apolcyn@google.com> | 2017-05-17 00:29:10 -0700 |
---|---|---|
committer | Alexander Polcyn <apolcyn@google.com> | 2017-05-17 00:29:10 -0700 |
commit | 7b3629e6c2570686701b4bdb6b171b219cbad06e (patch) | |
tree | b7c79d064d919ec6d14759608371730f5890309d /src/ruby/end2end | |
parent | 0e2b6a2109fdb53884094de6c2395bd49fbf13e1 (diff) |
fix lack-of-abort bug
Diffstat (limited to 'src/ruby/end2end')
-rwxr-xr-x | src/ruby/end2end/grpc_class_init_client.rb | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/ruby/end2end/grpc_class_init_client.rb b/src/ruby/end2end/grpc_class_init_client.rb index 8e46907368..62afc85b1d 100755 --- a/src/ruby/end2end/grpc_class_init_client.rb +++ b/src/ruby/end2end/grpc_class_init_client.rb @@ -106,9 +106,19 @@ def main return end - thd = Thread.new { test_proc.call } - test_proc.call - thd.join +# test_proc.call + + thds = [] + 100.times do + thds << Thread.new do + test_proc.call + sleep 10 + end + end + + #test_proc.call + raise "something" + thds.each(&:join) end main |