Skip to content

Commit

Permalink
Change forking int value range to not use 0, As child failure exits w…
Browse files Browse the repository at this point in the history
…ill with a 0 and cause a false test failure if $value is set to 0.
  • Loading branch information
srjlewis committed Jan 8, 2024
1 parent e4cf9fd commit b08c879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Couchbasev4.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
$cacheInstance = CacheManager::getInstance('Couchbasev4', $config);

$cache = new Psr16Adapter($cacheInstance);
$value = random_int(0, 254);
$value = random_int(1, 254);

$cache->set('forkFailTestKey', $value);

Expand Down Expand Up @@ -66,7 +66,7 @@
$cacheInstance = CacheManager::getInstance('Couchbasev4', $config);

$cache = new Psr16Adapter($cacheInstance);
$value = random_int(0, 254);
$value = random_int(1, 254);

$cache->set('forkSuccessTestKey', $value);

Expand Down

0 comments on commit b08c879

Please sign in to comment.