Fix broken http test
This commit is contained in:
parent
eacf88f6a5
commit
1fa0144b0b
@ -83,14 +83,20 @@ int check_results(const vector<string>& urls,
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return rv;
|
||||
return rv == EXIT_FAILURE ? 1 : 0;
|
||||
}
|
||||
|
||||
int test_multi_http()
|
||||
|
Loading…
x
Reference in New Issue
Block a user