Unverified Commit 740cde89 authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #368 from knowledge4igor/fix_data_races_in_http_client_test

Fix data races in http_client_test
parents 2772ff99 c8c0d00d
......@@ -4,6 +4,7 @@
#include "gtest/gtest.h"
#include <atomic>
#include <chrono>
using namespace Pistache;
......@@ -107,7 +108,7 @@ TEST(http_client_test, multiple_clients_with_one_request) {
client3.init();
std::vector<Async::Promise<Http::Response>> responses;
int response_counter = 0;
std::atomic<int> response_counter(0);
auto rb1 = client1.get(address);
auto response1 = rb1.send();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment