Skip to content

Commit 7f0d362

Browse files
committed
match callbacks_run inside event loop
1 parent 9e948ad commit 7f0d362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/em/em_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@
121121
callbacks_run << :errback
122122
end
123123
EM.add_timer(0.1) do
124+
callbacks_run.should == [:callback]
124125
lambda {
125126
client.close
126127
}.should_not raise_error(/invalid binding to detach/)
127128
EM.stop_event_loop
128129
end
129130
end
130-
callbacks_run.should == [:callback]
131131
end
132132
end
133133
rescue LoadError

0 commit comments

Comments
 (0)