Skip to content

tests: debug output on LibGoalFixture failure#6026

Merged
algorandskiy merged 1 commit intoalgorand:masterfrom
algorandskiy:pavel/e2e-catchup-gossip-debug
Jun 11, 2024
Merged

tests: debug output on LibGoalFixture failure#6026
algorandskiy merged 1 commit intoalgorand:masterfrom
algorandskiy:pavel/e2e-catchup-gossip-debug

Conversation

@algorandskiy
Copy link
Copy Markdown
Contributor

@algorandskiy algorandskiy commented Jun 11, 2024

Summary

LibGoalFixture sometimes detects node termination error but it panics since test assert is called after test's main goroutine termination:

panic: Fail in goroutine after TestCatchupOverGossip/ledger=,fetcher=2.1 has completed

So that we observe this panic message instead an actual debug output with error code and node.log content. This PR changes the sequence - log all available info first and only then assert and fail.

Test Plan

This is a test harness change.

@algorandskiy algorandskiy merged commit a5aac42 into algorand:master Jun 11, 2024
@algorandskiy algorandskiy deleted the pavel/e2e-catchup-gossip-debug branch March 16, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants