Skip to content

Commit 6f50729

Browse files
committed
Test tidyup.
1 parent 7452904 commit 6f50729

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/kernel/barrier.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,12 @@
124124

125125
# Should complete successfully
126126
end
127-
end
128-
129-
with "Kernel::Barrier" do
127+
130128
it "should create a barrier, yield it, wait, and stop automatically" do
131129
finished = 0
132130
results = []
133-
Barrier() do |barrier|
131+
132+
Barrier do |barrier|
134133
3.times do |i|
135134
barrier.async do |task|
136135
sleep(0.01 * i)
@@ -146,7 +145,7 @@
146145

147146
it "should handle exceptions and still clean up properly" do
148147
expect do
149-
Barrier() do |barrier|
148+
Barrier do |barrier|
150149
barrier.async do |task|
151150
raise "Kernel helper exception"
152151
end

0 commit comments

Comments
 (0)