Skip to content
This repository was archived by the owner on May 18, 2023. It is now read-only.

Fix tests to not call t.Fatal from a goroutine#34

Merged
djmitche merged 1 commit intobenbjohnson:masterfrom
djmitche:test-fixes
Oct 25, 2021
Merged

Fix tests to not call t.Fatal from a goroutine#34
djmitche merged 1 commit intobenbjohnson:masterfrom
djmitche:test-fixes

Conversation

@djmitche
Copy link
Copy Markdown
Collaborator

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.

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.
@djmitche djmitche mentioned this pull request Oct 20, 2021
@djmitche djmitche merged commit f7a1d13 into benbjohnson:master Oct 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant