-
Notifications
You must be signed in to change notification settings - Fork 2.8k
test(wrappers): fix data races in target filter and multi-source #5833
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: ivan katliarchuk <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: ivan katliarchuk <[email protected]>
Signed-off-by: ivan katliarchuk <[email protected]>
Signed-off-by: ivan katliarchuk <[email protected]>
} { | ||
|
||
t.Run(tc.title, func(t *testing.T) { | ||
t.Parallel() |
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.
With the use of independent endpoints, is this needed?
for _, tt := range tests { | ||
|
||
t.Run(tt.title, func(t *testing.T) { | ||
t.Parallel() |
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.
Do this cause any issue?
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What does it do ?
This PR addresses test flakiness caused by data races in TestTargetFilterSource, TestTargetFilterSourceEndpoints, and TestMultiSource.
Relevant issue stretchr/testify#187
Motivation
https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/post-external-dns-push-images/1965760676924231680
More