Fix workaround for the test failure with Ubuntu 14.04 libcurl
Don't check for 200 status code. Also don't check the response body if we don't get it at all.
This commit is contained in:
parent
af160f3d3e
commit
60d429047e
1 changed files with 2 additions and 3 deletions
|
|
@ -202,7 +202,7 @@ TEST_CASE_METHOD(RequestFixture,
|
|||
// for this one because it doesn't return anything in the body when
|
||||
// returning an error status code, so use another one.
|
||||
CreateAbs("https://httpstat.us/418");
|
||||
Run(wxWebRequest::State_Failed);
|
||||
Run(wxWebRequest::State_Failed, 0);
|
||||
|
||||
// For some reason, this test doesn't work with libcurl included in Ubuntu
|
||||
// 14.04, so skip it.
|
||||
|
|
@ -214,9 +214,8 @@ TEST_CASE_METHOD(RequestFixture,
|
|||
else
|
||||
{
|
||||
CHECK( status == 418 );
|
||||
CHECK( request.GetResponse().AsString() == "418 I'm a teapot" );
|
||||
}
|
||||
|
||||
CHECK( request.GetResponse().AsString() == "418 I'm a teapot" );
|
||||
}
|
||||
|
||||
TEST_CASE_METHOD(RequestFixture,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue