Skip to content

TXE logs expected duplicate nullifier test failures as ERROR during should_fail_with tests #23124

@Taridoku

Description

@Taridoku

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions