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 85ddb7c commit cfc202dCopy full SHA for cfc202d
spec/concurrent/synchronization_spec.rb
@@ -10,7 +10,7 @@ module Concurrent
10
store = store()
11
store.not_volatile = 0
12
store.volatile = 0
13
- @stop = false
+ @stop = false
14
15
in_thread do
16
Thread.abort_on_exception = true
@@ -163,7 +163,9 @@ def ns_initialize
163
t2
164
end
165
join_with t1
166
- expect(t1.value.status).to eq 'sleep'
+ t2 = t1.value
167
+ status = t2.status
168
+ expect(status).to(eq('sleep'), -> { "is #{status} instead at:\n#{t2.backtrace.join "\n"}" })
169
170
171
0 commit comments