Skip to content

test: clarify expect emit mismatch output#15194

Merged
grandizzy merged 1 commit into
masterfrom
centaur/1781593756-17479-3111
Jun 16, 2026
Merged

test: clarify expect emit mismatch output#15194
grandizzy merged 1 commit into
masterfrom
centaur/1781593756-17479-3111

Conversation

@decofe

@decofe decofe commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Improves expect emit mismatch reporting for same-name events with different indexed topic layouts, then updates the affected failure assertion snapshots.

The same-name indexed-layout case now reports SomethingElse indexed topic count mismatch: expected 1, got 0 instead of the misleading SomethingElse != expected SomethingElse.

The count-based fixture still reports SomethingElse != expected Something because it is a real different-event mismatch: the test expects Something(...) and the contract emits SomethingElse(...).

This fixes the nightly flaky test failure in forge::cli::failure_assertions::flaky_expect_emit_tests_should_fail.

close #15191
close #15192

Prompted by: @grandizzy

@decofe decofe requested review from DaniPopes and mattsse as code owners June 16, 2026 07:12
@grandizzy grandizzy marked this pull request as draft June 16, 2026 07:17
@decofe decofe force-pushed the centaur/1781593756-17479-3111 branch from 2243afa to 1d9ca4b Compare June 16, 2026 07:18
@decofe decofe changed the title test: update expect emit failure assertions test: clarify expect emit failure assertions Jun 16, 2026
@decofe decofe changed the title test: clarify expect emit failure assertions test: clarify expect emit mismatch output Jun 16, 2026
@grandizzy grandizzy marked this pull request as ready for review June 16, 2026 07:21
@grandizzy grandizzy enabled auto-merge (squash) June 16, 2026 07:31
@decofe decofe force-pushed the centaur/1781593756-17479-3111 branch from 1d9ca4b to 3e36001 Compare June 16, 2026 08:24
@grandizzy grandizzy merged commit 92eba24 into master Jun 16, 2026
19 checks passed
@grandizzy grandizzy deleted the centaur/1781593756-17479-3111 branch June 16, 2026 09:11
@github-project-automation github-project-automation Bot moved this to Done in Foundry Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: flaky tests workflow failed (isolate) bug: flaky tests workflow failed

3 participants