mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #352 from kiwix/small-compilation-error-fix
Fix small compilation error in tests
This commit is contained in:
commit
4f8b397081
|
@ -280,8 +280,9 @@ TEST_F(ServerTest, ETagHeaderIsSetAsNeeded)
|
||||||
for ( const Resource& res : all200Resources() ) {
|
for ( const Resource& res : all200Resources() ) {
|
||||||
const auto responseToGet = zfs1_->GET(res.url);
|
const auto responseToGet = zfs1_->GET(res.url);
|
||||||
EXPECT_EQ(res.etag_expected, responseToGet->has_header("ETag")) << res;
|
EXPECT_EQ(res.etag_expected, responseToGet->has_header("ETag")) << res;
|
||||||
if ( res.etag_expected )
|
if ( res.etag_expected ) {
|
||||||
EXPECT_TRUE(is_valid_etag(responseToGet->get_header_value("ETag")));
|
EXPECT_TRUE(is_valid_etag(responseToGet->get_header_value("ETag")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue