Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8cff565

Browse filesBrowse files
committed
Fix random test failure on lock
1 parent f82beb5 commit 8cff565
Copy full SHA for 8cff565

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎src/Symfony/Component/Lock/Tests/Store/ExpiringStoreTestTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Tests/Store/ExpiringStoreTestTrait.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ public function testExpiration()
4545
$store = $this->getStore();
4646

4747
$store->save($key);
48-
$store->putOffExpiration($key, $clockDelay / 1000000);
48+
$store->putOffExpiration($key, 2 * $clockDelay / 1000000);
4949
$this->assertTrue($store->exists($key));
5050

51-
usleep(2 * $clockDelay);
51+
usleep(3 * $clockDelay);
5252
$this->assertFalse($store->exists($key));
5353
}
5454

@@ -85,10 +85,10 @@ public function testRefreshLock()
8585
$store = $this->getStore();
8686

8787
$store->save($key);
88-
$store->putOffExpiration($key, $clockDelay / 1000000);
88+
$store->putOffExpiration($key, 2 * $clockDelay / 1000000);
8989
$this->assertTrue($store->exists($key));
9090

91-
usleep(2 * $clockDelay);
91+
usleep(3 * $clockDelay);
9292
$this->assertFalse($store->exists($key));
9393
}
9494

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.