Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix logging issues in TestSpacemeshApp_NodeService (#4763)
## Motivation `TestSpacemeshApp_NodeService` has been flaky recently. The issues were caused by how libp2p does logging and a missing cleanup of the internal clock during the test. ## Changes - remove custom clock in test - it is overwritten anyway by calling `app.Start()` later in the test - ensure the global logger used by libp2p is set to a no-op logger when the node is shut down (via `p2p.Host::Stop()`) ## Test Plan n/a ## TODO <!-- This section should be removed when all items are complete --> - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [x] Update documentation as needed ## DevOps Notes <!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases --> - [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources) - [x] This PR does not affect public APIs - [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.) - [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
- Loading branch information