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

fail to start server if there are duplicate service names #9099

Merged
merged 5 commits into from May 1, 2023

Conversation

chris48s
Copy link
Member

We've had a couple of PRs recently where someone defined >1 service classes with the same name. This does cause a unit test to fail, but people miss it in dev because the server still starts. This PR moves the check up-front into loadServiceClasses() instead of a separate check we only call under test. This should make it way more obvious in local dev if this problem exists.

@chris48s chris48s added developer-experience Dev tooling, test framework, and CI core Server, BaseService, GitHub auth labels Apr 17, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Apr 17, 2023

Messages
📖 ✨ Thanks for your contribution to Shields, @chris48s!

Generated by 🚫 dangerJS against 4533a31

@repo-ranger repo-ranger bot merged commit 388459a into badges:master May 1, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Server, BaseService, GitHub auth developer-experience Dev tooling, test framework, and CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants