Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: debug output on LibGoalFixture failure #6026

Merged

Conversation

algorandskiy
Copy link
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
18 checks passed
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