Skip to content

Commit

Permalink
Test also prone to random failures
Browse files Browse the repository at this point in the history
  • Loading branch information
willemstuursma committed May 21, 2018
1 parent c29df5e commit 941e058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mutex/MemcachedMutexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testFailAcquireLock()
{
$mutex = new MemcachedMutex("testFailAcquireLock", $this->memcached, 1);

$this->memcached->add(MemcachedMutex::PREFIX."testFailAcquireLock", true, 2);
$this->memcached->add(MemcachedMutex::PREFIX."testFailAcquireLock", "xxx", 999);

$mutex->synchronized(function () {
$this->fail("execution is not expected");
Expand Down

0 comments on commit 941e058

Please sign in to comment.