diff --git a/tests/waku_rln_relay/test_rln_group_manager_onchain.nim b/tests/waku_rln_relay/test_rln_group_manager_onchain.nim index 46adfacf1..6af5bb0f2 100644 --- a/tests/waku_rln_relay/test_rln_group_manager_onchain.nim +++ b/tests/waku_rln_relay/test_rln_group_manager_onchain.nim @@ -162,7 +162,8 @@ suite "Onchain group manager": test "trackRootChanges: oldest roots are evicted once the window is exceeded": const initialCount = AcceptableRootWindowSize - RlnContractRootCacheSize - additionalCount = RlnContractRootCacheSize + 1 # one more than the cache size to ensure eviction occurs + additionalCount = RlnContractRootCacheSize + 1 + # one more than the cache size to ensure eviction occurs let credentials = generateCredentials(initialCount + additionalCount) (waitFor manager.init()).isOkOr: raiseAssert $error