mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-15 19:13:39 +00:00
Fix problem with InvalidPort test
This commit is contained in:
1 parent
8191fd8e6c
commit
49d2e1f135
1 file changed
+2
-1
+2
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user