Fix small compilation error in tests

This commit is contained in:
Kelson 2020-05-17 16:47:21 +02:00
parent 0b25492edc
commit 2df74d9755
1 changed files with 2 additions and 1 deletions

View File

@ -280,10 +280,11 @@ 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")));
} }
} }
}
TEST_F(ServerTest, ETagIsTheSameInResponsesToDifferentRequestsOfTheSameURL) TEST_F(ServerTest, ETagIsTheSameInResponsesToDifferentRequestsOfTheSameURL)
{ {