1
0
mirror of synced 2025-07-22 03:21:50 +03:00

Fix problem with InvalidPort test

This commit is contained in:
yhirose
2022-02-27 14:29:34 -05:00
parent 8191fd8e6c
commit 49d2e1f135

View File

@ -610,7 +610,8 @@ TEST(ConnectionErrorTest, InvalidPort) {
auto res = cli.Get("/"); auto res = cli.Get("/");
ASSERT_TRUE(!res); ASSERT_TRUE(!res);
EXPECT_EQ(Error::Connection, res.error()); EXPECT_TRUE(Error::Connection == res.error() ||
Error::ConnectionTimeout == res.error());
} }
TEST(ConnectionErrorTest, Timeout_Online) { TEST(ConnectionErrorTest, Timeout_Online) {