Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Update StaticServerDomain unit tests #3294

Merged
merged 2 commits into from
Apr 1, 2013
Merged

Update StaticServerDomain unit tests #3294

merged 2 commits into from
Apr 1, 2013

Conversation

jasonsanjose
Copy link
Member

Refactor unit tests. Add new tests for warnings when a response (1) is not handled or (2) was already handled.

@ghost ghost assigned njx Apr 1, 2013
waitsForDone(nodeConnection.domains.staticServer.closeServer(path),
"waiting for static server to close");

waitsForDone(nodeConnection.domains.staticServer._setRequestFilterTimeout(), "restore request filter timeout");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be in a this.after() instead so that it always runs even if the test fails?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to afterEach instead. I tried to use this.after(), but nodeConnection is already null by that point since afterEach runs first.

@njx
Copy link

njx commented Apr 1, 2013

Reviewed--looks good, just one note.

@jasonsanjose
Copy link
Member Author

Changes pushed. @njx ready to review

@njx
Copy link

njx commented Apr 1, 2013

Merging

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.

2 participants