diff --git a/test/brpc_channel_unittest.cpp b/test/brpc_channel_unittest.cpp index 9cf0a10861..80c2c81775 100644 --- a/test/brpc_channel_unittest.cpp +++ b/test/brpc_channel_unittest.cpp @@ -1291,7 +1291,8 @@ class ChannelTest : public ::testing::Test{ CallMethod(&channel, &cntl, &req, &res, async); EXPECT_TRUE(brpc::EEOF == cntl.ErrorCode() || - brpc::ETOOMANYFAILS == cntl.ErrorCode()) << cntl.ErrorText(); + brpc::ETOOMANYFAILS == cntl.ErrorCode() || + ECONNRESET == cntl.ErrorCode()) << cntl.ErrorText(); StopAndJoin(); }