From 15d578ad87dd06d9ec99d0d4a7595b8bc7ecbeb9 Mon Sep 17 00:00:00 2001 From: gabrielmer <101006718+gabrielmer@users.noreply.github.com> Date: Wed, 12 Jun 2024 22:27:10 +0200 Subject: [PATCH] added message to failed assert (#2805) --- tests/waku_rln_relay/test_rln_group_manager_onchain.nim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 a3e412f41..571a30ed0 100644 --- a/tests/waku_rln_relay/test_rln_group_manager_onchain.nim +++ b/tests/waku_rln_relay/test_rln_group_manager_onchain.nim @@ -6,7 +6,7 @@ else: {.push raises: [].} import - std/[options, os, osproc, sequtils, deques, streams, strutils, tempfiles], + std/[options, os, osproc, sequtils, deques, streams, strutils, tempfiles, strformat], stew/[results, byteutils], testutils/unittests, chronos, @@ -119,10 +119,11 @@ proc createEthAccount(): Future[(keys.PrivateKey, Address)] {.async.} = tx.to = some(acc) tx.gasPrice = some(gasPrice) - # Send 10 eth to acc + # Send 1000 eth to acc discard await web3.send(tx) let balance = await web3.provider.eth_getBalance(acc, "latest") - assert(balance == ethToWei(1000.u256)) + assert balance == ethToWei(1000.u256), + fmt"Balance is {balance} but expected {ethToWei(1000.u256)}" return (pk, acc)