Adapt to CI env.

Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
Tao He 2021-09-23 13:20:02 +08:00
parent 1cd19888dd
commit 895857c523
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ DistributedLock::~DistributedLock() noexcept {
int main() {
int i = 0, t = 0;
while(t < 500) {
while(t < 10 /* update this value to make it run for longer */) {
{
DistributedLock lock(std::to_string(i), 0);
if(!lock.lock_acquired()) {