Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(MongoMemoryServer): start: remove first ".catch"
- remove first ".catch" function to restart the server if address is already in use (removed because the error it was checking for didnt exist anymore, and "getPort" already checks if the address is in use") - modify test to test this behaviour
- Loading branch information
Showing
2 changed files
with
19 additions
and
27 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