This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move test assertions out of range(chan)
This pattern of calling range on a channel and asserting that one item matches our test assertions will fail to raise an error if the queue is empty. So instead change these to read a single item from the channel, which will block if the channel is empty, and then make the assertion. I've added a done channel so that Ginkgo fails the test if we block for longer than the default of 1s: http://onsi.github.io/ginkgo/#asynchronous-tests
- Loading branch information
Showing
2 changed files
with
10 additions
and
12 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