We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7452904 commit 6f50729Copy full SHA for 6f50729
test/kernel/barrier.rb
@@ -124,13 +124,12 @@
124
125
# Should complete successfully
126
end
127
- end
128
-
129
- with "Kernel::Barrier" do
+
130
it "should create a barrier, yield it, wait, and stop automatically" do
131
finished = 0
132
results = []
133
- Barrier() do |barrier|
+ Barrier do |barrier|
134
3.times do |i|
135
barrier.async do |task|
136
sleep(0.01 * i)
@@ -146,7 +145,7 @@
146
145
147
it "should handle exceptions and still clean up properly" do
148
expect do
149
150
151
raise "Kernel helper exception"
152
0 commit comments