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

test(coap-server): don't shutdown servient unnecessarily #1212

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

JKRhb
Copy link
Member

@JKRhb JKRhb commented Jan 9, 2024

This PR contains a potential fix for the CoAP server problems observed in #1195. As the servients are not used by the CoapServer class, I simply removed the invocations of shutdown to fix the issue at hand.

In general, I think we could discuss if passing the servient to the protocol interface implementations is actually necessary or if the passing of protocol-specific callbacks for retrieving credentials could be an alternative (this is the approach I used for dart_wot in the meantime). But I would open a dedicated issue for that later :)

Copy link

codecov bot commented Jan 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5dc47c4) 77.60% compared to head (dec7291) 77.59%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1212      +/-   ##
==========================================
- Coverage   77.60%   77.59%   -0.02%     
==========================================
  Files          83       83              
  Lines       17311    17311              
  Branches     1747     1747              
==========================================
- Hits        13435    13433       -2     
- Misses       3840     3842       +2     
  Partials       36       36              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@relu91 relu91 left a comment

Choose a reason for hiding this comment

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

Good to go too, should we merge this first or maybe try it after we merged #1195 ?

@JKRhb
Copy link
Member Author

JKRhb commented Jan 9, 2024

Good to go too, should we merge this first or maybe try it after we merged #1195 ?

Either way would be fine for me :) If we merge #1195 first, then I would rebase against the new master state.

@danielpeintner
Copy link
Member

I would merge this PR before #1195 so that we have clean runs for all PRs that we merge. I hope this is okay for all..

@relu91 relu91 merged commit b77b16a into eclipse-thingweb:master Jan 11, 2024
12 checks passed
@JKRhb JKRhb deleted the coap-server-test-fix branch January 11, 2024 12:55
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.

3 participants