Adapt to CI env.
Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
parent
1cd19888dd
commit
895857c523
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue