Fix the fail in travis ci (#260)

This commit is contained in:
An Tao 2019-09-28 20:35:05 +08:00 committed by GitHub
parent 0b45135391
commit 93573c99bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -15,8 +15,9 @@
#include "Users.h"
#include <drogon/config.h>
#include <drogon/orm/DbClient.h>
#include <iostream>
#include <trantor/utils/Logger.h>
#include <iostream>
#include <chrono>
#include <unistd.h>
#include <stdlib.h>
@ -32,6 +33,7 @@ int counter = 0;
std::promise<int> pro;
auto globalf = pro.get_future();
using namespace std::chrono_literals;
void addCount(int &count, std::promise<int> &pro)
{
++count;
@ -544,5 +546,6 @@ int main()
testOutput(false, "ORM mapper asynchronous interface(1)");
});
globalf.get();
std::this_thread::sleep_for(0.008s);
return 0;
}