aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xsrc/ruby/end2end/grpc_class_init_client.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ruby/end2end/grpc_class_init_client.rb b/src/ruby/end2end/grpc_class_init_client.rb
index d9c23c3835..464c42d07a 100755
--- a/src/ruby/end2end/grpc_class_init_client.rb
+++ b/src/ruby/end2end/grpc_class_init_client.rb
@@ -61,16 +61,15 @@ def run_gc_stress_test(test_proc)
end
def run_concurrency_stress_test(test_proc)
- test_proc.call
-
- thds = []
100.times do
- thds << Thread.new do
+ Thread.new do
test_proc.call
end
end
- raise "something"
+ test_proc.call
+
+ raise 'exception thrown while child thread initing class'
end
# default (no gc_stress and no concurrency_stress)