Skip to content

Commit 14deab8

Browse files
committed
Isolate actress test suite from other tests
1 parent 8672425 commit 14deab8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/concurrent/actress_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ def backdoor(&block)
1515

1616
describe 'Concurrent::Actress' do
1717
prepend_before do
18-
@do_not_reset = true
18+
@do_not_reset = true
19+
@@isolated_from_other_tests ||= begin
20+
sleep 0.1
21+
true
22+
end
1923
end
2024

2125
def terminate_actors(*actors)
@@ -159,7 +163,7 @@ def on_message(message)
159163
end
160164

161165
it 'has children set after a child is created' do
162-
child = parent.ask!(:child) # FIXME may get stuck!!
166+
child = parent.ask!(:child)
163167
parent.ask!(nil).should include(child)
164168
child.ask!(nil).should eq parent
165169

0 commit comments

Comments
 (0)