This repository has been archived by the owner on May 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests to not call t.Fatal from a goroutine
The "too late!" version of this call was being made *after* the corresponding test had completed, causing all manner of sadness from the testing package. This refactors the tests to just measure the duration of the various kinds of sleep, and assert that the duration is within a good range.
- Loading branch information
Showing
1 changed file
with
39 additions
and
90 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