Skip to content

Conversation

@jasonpincin
Copy link
Contributor

When done was called twice inside of a test, undefined was being printed twice to stderr because internals.output expects an error object and the condition checking for done being called twice was providing a string. Thus, the tester has no idea. Ask me how I know...

I also added an extra carriage return at end of internals.output which keeps output clean when running tests in an automated tool such as nodemon.

Fixes #87

@hueniverse hueniverse added the bug label May 1, 2014
@hueniverse hueniverse added this to the 3.2.0 milestone May 1, 2014
@hueniverse hueniverse self-assigned this May 1, 2014
hueniverse pushed a commit that referenced this pull request May 1, 2014
updated double call check on done to provide error to internals.output
@hueniverse hueniverse merged commit 5d7c876 into hapijs:master May 1, 2014
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple done call detection not working

2 participants