diff --git a/lib/tests/integration_test/client/main.cc b/lib/tests/integration_test/client/main.cc index 722b56de..06fd7716 100644 --- a/lib/tests/integration_test/client/main.cc +++ b/lib/tests/integration_test/client/main.cc @@ -59,11 +59,11 @@ void doTest(const HttpClientPtr &client, std::shared_ptr TEST_CTX) auto &id = resp->getCookie("JSESSIONID"); REQUIRE(id); + haveCert = resp->peerCertificate() != nullptr; + sessionID = id; client->addCookie(id); waitCookie.set_value(1); - - haveCert = resp->peerCertificate() != nullptr; }); f.get(); CHECK(haveCert == client->secure());