fix race condition when setting the secure flag during test (#1742)
This commit is contained in:
parent
17c80508c0
commit
f1426c6e9a
|
@ -59,11 +59,11 @@ void doTest(const HttpClientPtr &client, std::shared_ptr<test::Case> TEST_CTX)
|
||||||
auto &id = resp->getCookie("JSESSIONID");
|
auto &id = resp->getCookie("JSESSIONID");
|
||||||
REQUIRE(id);
|
REQUIRE(id);
|
||||||
|
|
||||||
|
haveCert = resp->peerCertificate() != nullptr;
|
||||||
|
|
||||||
sessionID = id;
|
sessionID = id;
|
||||||
client->addCookie(id);
|
client->addCookie(id);
|
||||||
waitCookie.set_value(1);
|
waitCookie.set_value(1);
|
||||||
|
|
||||||
haveCert = resp->peerCertificate() != nullptr;
|
|
||||||
});
|
});
|
||||||
f.get();
|
f.get();
|
||||||
CHECK(haveCert == client->secure());
|
CHECK(haveCert == client->secure());
|
||||||
|
|
Loading…
Reference in New Issue