From b0e31693fd65cf7f513ddd28cd32b5c7fc037116 Mon Sep 17 00:00:00 2001 From: stubbsta Date: Mon, 3 Aug 2026 11:00:53 +0200 Subject: [PATCH] test: apply fast retries to the proof-attach RLN registration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test_rln_proof_attach.nim (added in #4069) postdates this branch, so its node-internal register() — on the manager created during RLN mount — still paid the 4s production retry delay on every receipt poll. Apply withFastRetries() to it, matching the other node-internal managers this branch already speeds up. Also reflows setupOnchainGroupManager's sendMintCall to nph after the Opt.some conversion made during the rebase conflict resolution (master migrated Option -> Opt while this branch was open). Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/messaging/test_rln_proof_attach.nim | 6 +++--- tests/waku_rln_relay/utils_onchain.nim | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/messaging/test_rln_proof_attach.nim b/tests/messaging/test_rln_proof_attach.nim index 11f7d754a..a7d23bb90 100644 --- a/tests/messaging/test_rln_proof_attach.nim +++ b/tests/messaging/test_rln_proof_attach.nim @@ -75,9 +75,9 @@ suite "SendService RLN proof attach - RLN mounted": let credentials = generateCredentials() ( - waitFor cast[OnchainGroupManager](waku.node.rln.groupManager).register( - credentials, UserMessageLimit(20) - ) + waitFor cast[OnchainGroupManager](waku.node.rln.groupManager) + .withFastRetries() + .register(credentials, UserMessageLimit(20)) ).isOkOr: assert false, "failed to register RLN credentials: " & error diff --git a/tests/waku_rln_relay/utils_onchain.nim b/tests/waku_rln_relay/utils_onchain.nim index 39048314f..332f41dbc 100644 --- a/tests/waku_rln_relay/utils_onchain.nim +++ b/tests/waku_rln_relay/utils_onchain.nim @@ -746,7 +746,12 @@ proc setupOnchainGroupManager*( return await sendMintCall( - web3, web3.defaultAccount, testTokenAddress, acc, ethToWei(1000.u256), Opt.some(0.u256) + web3, + web3.defaultAccount, + testTokenAddress, + acc, + ethToWei(1000.u256), + Opt.some(0.u256), ) let contractAddress = (await executeForgeContractDeployScripts(privateKey, acc, web3)).valueOr: