Skip to content

Commit 7c7f815

Browse files
authored
Merge pull request #744 from ruby-concurrency/pitr-ch/ci
More debug information on intermittent test failure
2 parents 85ddb7c + cfc202d commit 7c7f815

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/concurrent/synchronization_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Concurrent
1010
store = store()
1111
store.not_volatile = 0
1212
store.volatile = 0
13-
@stop = false
13+
@stop = false
1414

1515
in_thread do
1616
Thread.abort_on_exception = true
@@ -163,7 +163,9 @@ def ns_initialize
163163
t2
164164
end
165165
join_with t1
166-
expect(t1.value.status).to eq 'sleep'
166+
t2 = t1.value
167+
status = t2.status
168+
expect(status).to(eq('sleep'), -> { "is #{status} instead at:\n#{t2.backtrace.join "\n"}" })
167169
end
168170
end
169171

0 commit comments

Comments
 (0)