Skip to content

Commit e84518e

Browse files
committed
unittest-seastar-socket: tolerate connection_reset in test_unexpected_down
Fixes: https://tracker.ceph.com/issues/64457 Signed-off-by: Samuel Just <[email protected]>
1 parent 66969c0 commit e84518e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/crimson/test_socket.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,8 @@ future<> test_unexpected_down(bool is_fixed_cpu) {
450450
return Connection::dispatch_rw_bounded(cs, 128, true
451451
).handle_exception_type([](const std::system_error& e) {
452452
logger().error("test_unexpected_down(): client get error {}", e);
453-
ceph_assert(e.code() == error::read_eof);
453+
ceph_assert(e.code() == error::read_eof ||
454+
e.code() == std::errc::connection_reset);
454455
});
455456
},
456457
[](auto ss) { return Connection::dispatch_rw_unbounded(ss); }

0 commit comments

Comments
 (0)