Explorar o código

Fix problem with InvalidPort test

yhirose %!s(int64=4) %!d(string=hai) anos
pai
achega
49d2e1f135
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      test/test.cc

+ 2 - 1
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) {