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

fix: remove unit tests related to redis pub/sub #793

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

judehung
Copy link
Member

@judehung judehung commented Nov 7, 2024

Per edgexfoundry/go-mod-messaging#366, EdgeX remove support on Redis Pub/Sub as message bus, so unit tests related to redis pub/sub should be removed as well to avoid errors.

Note that redis pub/sub doesn't need to establish preemptive connection before publish and subscribe, and a redis client can be susccessfully created and make noop Connect() without error per the implmentation of removed unit tests.

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/go-mod-bootstrap/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I am not introducing a new dependency (add notes below if you are)
  • I have added unit tests for the new feature or bug fix (if not, why?)
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
  • I have opened a PR for the related docs change (if not, why?)

Testing Instructions

New Dependency Instructions (If applicable)

Per edgexfoundry/go-mod-messaging#366,
EdgeX remove support on Redis Pub/Sub as message bus, so unit tests
related to redis pub/sub should be removed as well to avoid errors.

Notr that redis pub/sub doesn't need to establish preemptive connection
before publish and subscribe, and a redis client can be susccessfully
created and make noop Connect() without error per the implmentation of
removed unit tests.

Signed-off-by: Jude Hung <jude@iotechsys.com>
@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.31%. Comparing base (3d405ba) to head (1aa78c2).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #793      +/-   ##
==========================================
- Coverage   46.77%   46.31%   -0.46%     
==========================================
  Files          58       58              
  Lines        3519     3519              
==========================================
- Hits         1646     1630      -16     
- Misses       1753     1770      +17     
+ Partials      120      119       -1     

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

bootstrap/handlers/messaging_test.go Show resolved Hide resolved
bootstrap/handlers/messaging_test.go Outdated Show resolved Hide resolved
Copy link
Member

@cloudxxx8 cloudxxx8 left a comment

Choose a reason for hiding this comment

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

LGTM

@cloudxxx8
Copy link
Member

please squash the commits or rename the commit with prefix fix: to pass Semantic PR

Signed-off-by: Jude Hung <jude@iotechsys.com>
@cloudxxx8 cloudxxx8 merged commit 1eae02d into edgexfoundry:main Nov 7, 2024
3 checks passed
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