-
Notifications
You must be signed in to change notification settings - Fork 575
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
Updated mtping TLS cert test to bind to free port #7036
Updated mtping TLS cert test to bind to free port #7036
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #7036 +/- ##
=======================================
Coverage 78.59% 78.59%
=======================================
Files 249 249
Lines 13228 13228
=======================================
Hits 10396 10396
Misses 2304 2304
Partials 528 528 ☔ View full report in Codecov by Sentry. |
/lgtm |
/assign @Cali0707 |
/retest-required |
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.
/lgtm
/approve
Ah there are conflicts |
Signed-off-by: Calum Murray <cmurray@redhat.com>
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test upgrade-tests |
/retest-required |
/retest |
/retest-required |
Fixes knative#7028 Looking at the logs, it seems like this test fails because it cannot bind to the required port: ``` === FAIL: pkg/adapter/mtping TestSendEventsTLS/Valid_CA_certs (unknown) panic: listen tcp :8334: bind: address already in use goroutine 226 [running]: knative.dev/eventing/pkg/eventingtls/eventingtlstesting.StartServer.func1() /home/prow/go/src/knative.dev/eventing/pkg/eventingtls/eventingtlstesting/eventingtlstesting.go:77 +0x88 created by knative.dev/eventing/pkg/eventingtls/eventingtlstesting.StartServer /home/prow/go/src/knative.dev/eventing/pkg/eventingtls/eventingtlstesting/eventingtlstesting.go:74 +0x7ea ``` <!-- Please include the 'why' behind your changes if no issue exists --> ## Proposed Changes <!-- Please categorize your changes: - 🎁 Add new feature - 🐛 Fix bug - 🧹 Update or clean up current behavior - 🗑️ Remove feature or internal logic --> - Update the test to bind to a free address, using port 0 (https://www.lifewire.com/port-0-in-tcp-and-udp-818145) ### Pre-review Checklist <!-- If these boxes are not checked, you will be asked to complete these requirements or explain why they do not apply to your PR. --> - [ ] **At least 80% unit test coverage** - [ ] **E2E tests** for any new behavior - [ ] **Docs PR** for any user-facing impact - [ ] **Spec PR** for any new API feature - [ ] **Conformance test** for any change to the spec --------- Signed-off-by: Calum Murray <cmurray@redhat.com>
Fixes #7028
Looking at the logs, it seems like this test fails because it cannot bind to the required port:
Proposed Changes
Pre-review Checklist