Skip to content

Commit e9f3c95

Browse files
authored
Fix flakey memcached tests (#31646)
1 parent cfef9a9 commit e9f3c95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Integration/Cache/MemcachedTaggedCacheTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public function testMemcachedCanStoreAndRetrieveTaggedCacheItems()
1313
{
1414
$store = Cache::store('memcached');
1515

16-
$store->tags(['people', 'artists'])->put('John', 'foo', 1);
17-
$store->tags(['people', 'authors'])->put('Anne', 'bar', 1);
16+
$store->tags(['people', 'artists'])->put('John', 'foo', 2);
17+
$store->tags(['people', 'authors'])->put('Anne', 'bar', 2);
1818

1919
$this->assertSame('foo', $store->tags(['people', 'artists'])->get('John'));
2020
$this->assertSame('bar', $store->tags(['people', 'authors'])->get('Anne'));
@@ -36,7 +36,7 @@ public function testMemcachedCanStoreManyTaggedCacheItems()
3636
{
3737
$store = Cache::store('memcached');
3838

39-
$store->tags(['people', 'artists'])->putMany(['John' => 'foo', 'Jane' => 'bar'], 1);
39+
$store->tags(['people', 'artists'])->putMany(['John' => 'foo', 'Jane' => 'bar'], 2);
4040

4141
$this->assertSame('foo', $store->tags(['people', 'artists'])->get('John'));
4242
$this->assertSame('bar', $store->tags(['people', 'artists'])->get('Jane'));

0 commit comments

Comments
 (0)