Minor change in io_test.cpp
This commit is contained in:
parent
52ff2787bd
commit
1d34b7f3de
1 changed files with 3 additions and 3 deletions
|
|
@ -118,17 +118,17 @@ int main() {
|
|||
assert(call);
|
||||
|
||||
{
|
||||
vector<bool> calls(100);
|
||||
vector<int> calls(100);
|
||||
vector<thread> threads;
|
||||
for(size_t c=0;c<100;++c) {
|
||||
calls[c]=false;
|
||||
calls[c]=0;
|
||||
threads.emplace_back([c, &client, &calls] {
|
||||
client.request("GET", "/match/123", [c, &calls](shared_ptr<HttpClient::Response> response, const SimpleWeb::error_code &ec) {
|
||||
assert(!ec);
|
||||
stringstream output;
|
||||
output << response->content.rdbuf();
|
||||
assert(output.str()=="123");
|
||||
calls[c]=true;
|
||||
calls[c]=1;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue