Skip to content

Commit c8e467f

Browse files
authored
Merge pull request ceph#55608 from athanatos/wip-debug-64457
unittest-seastar-socket: tolerate connection_reset in test_unexpected_down Reviewed-by: Casey Bodley <[email protected]> Reviewed-by: Chunmei Liu <[email protected]> Reviewed-by: Radoslaw Zarzynski <[email protected]> Reviewed-by: Matan Breizman <[email protected]>
2 parents 29fba08 + e84518e commit c8e467f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/crimson/test_socket.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,9 @@ future<> test_unexpected_down(bool is_fixed_cpu) {
449449
[](auto cs) {
450450
return Connection::dispatch_rw_bounded(cs, 128, true
451451
).handle_exception_type([](const std::system_error& e) {
452-
logger().debug("test_unexpected_down(): client get error {}", e);
453-
ceph_assert(e.code() == error::read_eof);
452+
logger().error("test_unexpected_down(): client get error {}", e);
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)