aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/end2end/grpc_class_init_client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'src/ruby/end2end/grpc_class_init_client.rb')
-rwxr-xr-xsrc/ruby/end2end/grpc_class_init_client.rb16
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