Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove race condition from bdns_test.go (letsencrypt#1906)
This PR, makes testing the bdns package more reliable. A race condition in TestMain was resulting in the test running before the test dns server had started. This is fixed by actively polling for the DNS server to be ready before starting the test suite. Furthermore, a 1 millisecond server read/write timeout was proving to time out on occasion. This is fixed increasing to a 1 second read/write timeout to increase test reliability. FYI: ran package bdns tests 1000 times with 22 failures previously, after this PR ran 1000 times with 0 failures. fixes letsencrypt#1317
- Loading branch information