File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 116116 expect do
117117 r . read ( 5 )
118118 end . to raise_exception ( IOError , message : be =~ /stream closed/ )
119+ ensure
120+ puts "Exiting read task"
119121 end
120122
121123 close_task = Async do
122124 r . close
125+ ensure
126+ puts "Exiting close task"
123127 end
124128
125129 close_task . wait
188192
189193 expect do
190194 read_thread . join
191- end . to raise_exception ( IOError , message : be =~ /stream closed/ )
195+ end . to raise_exception ( IOError , message : be =~ /closed/ )
192196 end
193197
194198 it "can interrupt reading fiber in a new thread when closing from a fiber" do
201205 read_task = Async do
202206 expect do
203207 r . read ( 5 )
204- end . to raise_exception ( IOError , message : be =~ /stream closed/ )
208+ end . to raise_exception ( IOError , message : be =~ /closed/ )
205209 end
206210 read_task . wait
207211 end
You can’t perform that action at this time.
0 commit comments