-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rename MapeoManager.start() and MapeoManager.stop() methods #399
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, although now you've added the lifecycle test I want to actually make it test the server is going through the correct lifecycle. non-blocking though I would say, could be done later.
coreStorage: () => new RAM(), | ||
}) | ||
|
||
await manager.startMediaServer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check it's started: get a url, check it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need to put data there, just returning 404 is enough to know it's started.
}) | ||
|
||
await manager.startMediaServer() | ||
await manager.startMediaServer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get a url, check the port hasn't changed
|
||
await manager.startMediaServer() | ||
await manager.startMediaServer() | ||
await manager.stopMediaServer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the url previously returned no longer works (should return a connection error)
test-e2e/media-server.js
Outdated
await manager.startMediaServer() | ||
await manager.stopMediaServer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checks as above
1127de5
to
876b628
Compare
addressed in 876b628 |
Closes #391
Renames them to
startMediaServer()
andstopMediaServer()
, respectively