Skip to content

Commit e92b323

Browse files
committed
Do not use keywords
1 parent 0d55fa3 commit e92b323

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

spec/concurrent/atomic/read_write_lock_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module Concurrent
110110

111111
latch_3.count_down
112112

113-
join_with t1, t2
113+
join_with [t1, t2]
114114
end
115115
end
116116

spec/concurrent/synchronization_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def ns_initialize
125125
subject.wait
126126
end
127127
t2 = in_thread { Thread.pass until t1.status == 'sleep' }
128-
join_with t2, timeout: 5
128+
join_with t2, 5
129129
end
130130

131131
it 'allows the sleeping thread to be killed' do
@@ -148,7 +148,7 @@ def ns_initialize
148148
subject.synchronize {} # it will deadlock here if #wait doesn't release lock
149149
t2
150150
end
151-
join_with t1, timeout: 5
151+
join_with t1, 5
152152
expect(t1.value.status).to eq 'sleep'
153153
end
154154

@@ -159,7 +159,7 @@ def ns_initialize
159159
subject.synchronize {} # it will deadlock here if #wait doesn't release lock
160160
t2
161161
end
162-
join_with t1, timeout: 5
162+
join_with t1, 5
163163
expect(t1.value.status).to eq 'sleep'
164164
end
165165
end

spec/support/example_group_extensions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def in_thread(*args, &block)
3232
t
3333
end
3434

35-
def join_with(*threads, timeout: 0.1)
35+
def join_with(threads, timeout = 0.1)
3636
Array(threads).each { |t| expect(t.join(timeout)).not_to eq nil }
3737
end
3838
end

0 commit comments

Comments
 (0)