-
-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(test): consolidate local http server creation
Following the same pattern used to HTTPS local servers, added a utility that creates and listens for a HTTP server and ensures it gets closed after the test ends. There were some tests that weren't properly closing the server if the test failed, but mostly this refactor reduces boilerplate from tests. Not all tests that call `http.createServer` were updated. The ones not migrated to Mocha DSL or Chai were left alone since they're due for refactors anyway.
- Loading branch information
1 parent
263fe91
commit 8638e5b
Showing
12 changed files
with
209 additions
and
274 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
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
Oops, something went wrong.