Skip to content

Commit

Permalink
cleanup rubocop errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ekump committed Nov 1, 2023
1 parent 0290169 commit 5c1c3d2
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
# number of threads that will be created concurrently in a test, which in
# this case is 2.
ThreadHelpers.with_leaky_thread_creation(:concurrent_ruby) do
Concurrent::Promises.future {
Concurrent::Promises.future do
Concurrent::Promises.future {}.value
}.value
end.value
end
end

Expand Down Expand Up @@ -109,16 +109,16 @@
outer_span = tracer.trace('outer_span')
future_1 = Concurrent::Promises.future do
barrier.wait
tracer.trace('inner_span') {
tracer.trace('inner_span') do
barrier.wait
}
end
end

future_2 = Concurrent::Promises.future do
barrier.wait
tracer.trace('second_inner_span') {
tracer.trace('second_inner_span') do
barrier.wait
}
end
end

future_1.wait
Expand All @@ -136,7 +136,6 @@
end
end
end

end

context 'Concurrent::Future (deprecated)' do
Expand Down

0 comments on commit 5c1c3d2

Please sign in to comment.