Fix broken http test

This commit is contained in:
Johan Wikman
2018-12-20 09:24:43 +02:00
parent eacf88f6a5
commit 1fa0144b0b

View File

@ -83,14 +83,20 @@ int check_results(const vector<string>& urls,
} }
else else
{ {
if (res.code != 0) switch (res.code)
{ {
case mxb::http::Result::ERROR:
case mxb::http::Result::COULDNT_RESOLVE_HOST:
case mxb::http::Result::OPERATION_TIMEDOUT:
break;
default:
rv = EXIT_FAILURE; rv = EXIT_FAILURE;
} }
} }
} }
return rv; return rv == EXIT_FAILURE ? 1 : 0;
} }
int test_multi_http() int test_multi_http()