Aztec version: 4.2.0
nargo version: 1.0.0-beta.19
Command: aztec test --package token --format terse
Scenario:
A Noir contract test intentionally replays the same private note spend / authwit nonce and marks the test with:
#[test(should_fail_with = "duplicate nullifiers")]
or
#[test(should_fail_with = "Attempted to emit duplicate siloed nullifier")]
Actual:
The test passes, but TXE logs:
ERROR: world-state:database Call BATCH_INSERT failed...
NullifierTree leaf type NullifierLeafValue is not updateable...
already present
Expected:
For an expected test failure, TXE/nargo should avoid logging this as an ERROR, or downgrade/suppress it in test output once the failure is matched by should_fail_with.
Aztec version: 4.2.0
nargo version: 1.0.0-beta.19
Command: aztec test --package token --format terse
Scenario:
A Noir contract test intentionally replays the same private note spend / authwit nonce and marks the test with:
#[test(should_fail_with = "duplicate nullifiers")]
or
#[test(should_fail_with = "Attempted to emit duplicate siloed nullifier")]
Actual:
The test passes, but TXE logs:
ERROR: world-state:database Call BATCH_INSERT failed...
NullifierTree leaf type NullifierLeafValue is not updateable...
already present
Expected:
For an expected test failure, TXE/nargo should avoid logging this as an ERROR, or downgrade/suppress it in test output once the failure is matched by should_fail_with.