-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit tests for NodeLatencyMonitor (#6429)
The tests leverage the net.PacketConn fake implementation which was recently introduced. We also introduce a mock for the ListenPacket call, which we use to validate when sockets are opened and to return our fake implementation. The new tests didn't reveal any issue in the existing code. Signed-off-by: Antonin Bas <[email protected]>
- Loading branch information
1 parent
615907d
commit 759f201
Showing
6 changed files
with
965 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.