-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skip responder test if we can't bind to a port (#372)
Summary: Pull Request resolved: #372 Avoids failure on Github CI. ``` 2024-06-19T12:58:52.4053342Z === RUN TestServer 2024-06-19T12:58:52.4074565Z server_test.go:173: 2024-06-19T12:58:52.4075930Z Error Trace: /home/runner/work/time/time/ntp/responder/server/server_test.go:173 2024-06-19T12:58:52.4078272Z Error: Expected nil, but got: &net.OpError{Op:"listen", Net:"udp", Source:net.Addr(nil), Addr:(*net.UDPAddr)(0xc00011c030), Err:(*os.SyscallError)(0xc000134000)} 2024-06-19T12:58:52.4080083Z Test: TestServer 2024-06-19T12:58:52.4080739Z --- FAIL: TestServer (0.00s) 2024-06-19T12:58:52.4081199Z FAIL ``` Also remove clearly broken (not even compiling) tests for darwin and freebsd: ``` ~/d/time-fork go test github.com/facebook/time/ntp/responder/server/... # github.com/facebook/time/ntp/responder/server [github.com/facebook/time/ntp/responder/server.test] ntp/responder/server/server_darwin_test.go:49:17: undefined: tc FAIL github.com/facebook/time/ntp/responder/server [build failed] FAIL ``` Reviewed By: deathowl Differential Revision: D58785363 fbshipit-source-id: 4ae91df7d71bccb0f38e27d4f86293f953b98829
- Loading branch information
1 parent
9a1041c
commit c05fe48
Showing
4 changed files
with
22 additions
and
20 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
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