Skip to content
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

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

achou11
Copy link
Member

@achou11 achou11 commented Nov 30, 2023

Closes #391

Renames them to startMediaServer() and stopMediaServer(), respectively

Copy link
Member

@gmaclennan gmaclennan left a 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()
Copy link
Member

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.

Copy link
Member

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()
Copy link
Member

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()
Copy link
Member

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)

Comment on lines 36 to 76
await manager.startMediaServer()
await manager.stopMediaServer()
Copy link
Member

Choose a reason for hiding this comment

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

Checks as above

@achou11 achou11 force-pushed the ac/manager-start-stop-rename branch from 1127de5 to 876b628 Compare December 4, 2023 16:43
@achou11 achou11 self-assigned this Dec 4, 2023
@achou11
Copy link
Member Author

achou11 commented Dec 4, 2023

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.

addressed in 876b628

@achou11 achou11 merged commit 5287944 into main Dec 4, 2023
6 of 7 checks passed
@achou11 achou11 deleted the ac/manager-start-stop-rename branch December 4, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

start() and stop() methods in MapeoManager should be renamed or removed
2 participants