From b08c87953cb9f5c8756535142ed9dec44f3d5842 Mon Sep 17 00:00:00 2001 From: "steven.lewis" Date: Mon, 8 Jan 2024 15:11:43 +0000 Subject: [PATCH] Change forking int value range to not use 0, As child failure exits will with a 0 and cause a false test failure if $value is set to 0. --- tests/Couchbasev4.test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Couchbasev4.test.php b/tests/Couchbasev4.test.php index 150cac9..269d2f0 100644 --- a/tests/Couchbasev4.test.php +++ b/tests/Couchbasev4.test.php @@ -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); @@ -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);