From 49d2e1f13576d5d6d2b1aeb3e75d8478f9a84f00 Mon Sep 17 00:00:00 2001 From: yhirose Date: Sun, 27 Feb 2022 14:29:34 -0500 Subject: [PATCH] Fix problem with InvalidPort test --- test/test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.cc b/test/test.cc index e963c2d..3fe85c5 100644 --- a/test/test.cc +++ b/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) {