From 0a3d6e03e8e79c21efaa56781c7c409a4e6b0c1f Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Wed, 29 Nov 2023 11:50:21 -0600 Subject: [PATCH] CACHEBOX-85 #resolve Remove Lock and Double `get` from getOrSet --- tests/specs/cache/providers/CacheBoxProviderTest.cfc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/specs/cache/providers/CacheBoxProviderTest.cfc b/tests/specs/cache/providers/CacheBoxProviderTest.cfc index 74abb279c..941c0dbae 100755 --- a/tests/specs/cache/providers/CacheBoxProviderTest.cfc +++ b/tests/specs/cache/providers/CacheBoxProviderTest.cfc @@ -138,12 +138,12 @@ var cacheKey = "test-#createUUID()#"; var results = cache.getOrSet( objectKey = cacheKey, produce = cacheProducer ); assertTrue( structKeyExists( results, "name" ) ); - assertEquals( 2, cache.getStats().getMisses() ); + assertEquals( 1, cache.getStats().getMisses() ); assertEquals( 0, cache.getStats().getHits() ); var results = cache.getOrSet( objectKey = cacheKey, produce = cacheProducer ); assertTrue( structKeyExists( results, "name" ) ); - assertEquals( 2, cache.getStats().getMisses() ); + assertEquals( 1, cache.getStats().getMisses() ); assertEquals( 1, cache.getStats().getHits() ); }