Skip to content

Commit aa0229a

Browse files
committed
✅ Guard against inconsequntial CI failures
I haven't reproduced these eriors locally! But they occur regularly in CI. Perhaps there is a race condition?
1 parent 30868ae commit aa0229a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/net/imap/fake_server/command_router.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,17 @@ def handler_for(command)
5555
resp.args.nil? or return resp.fail_bad_args
5656
resp.bye
5757
state.logout
58-
resp.done_ok
58+
begin
59+
resp.done_ok
60+
rescue IOError
61+
# TODO: fix whatever is causing this!
62+
warn "connection issue after bye but before LOGOUT could complete"
63+
if $!.respond_to :detailed_message
64+
warn $!.detailed_message highlight: true, order: :bottom
65+
else
66+
warn $!.full_message highlight: true, order: :bottom
67+
end
68+
end
5969
end
6070

6171
on "STARTTLS" do |resp|

0 commit comments

Comments
 (0)