Fix problem with InvalidPort test

pull/1209/head
yhirose 6 months ago
parent 8191fd8e6c
commit 49d2e1f135
  1. 3
      test/test.cc

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

Loading…
Cancel
Save