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 flaky test: TestNewGatewayEventMapper #774

Merged
merged 1 commit into from
Jul 23, 2024
Merged

fix flaky test: TestNewGatewayEventMapper #774

merged 1 commit into from
Jul 23, 2024

Conversation

eguzki
Copy link
Contributor

@eguzki eguzki commented Jul 23, 2024

No description provided.

@eguzki eguzki requested a review from a team as a code owner July 23, 2024 10:03
@@ -90,7 +91,11 @@ func TestNewGatewayEventMapper(t *testing.T) {
},
}
requests := em.MapToPolicy(context.Background(), gateway, &kuadrantv1beta2.AuthPolicy{})
expected := []reconcile.Request{{NamespacedName: types.NamespacedName{Namespace: "app-ns", Name: "policy-1"}}, {NamespacedName: types.NamespacedName{Namespace: "app-ns", Name: "policy-2"}}}
assert.DeepEqual(subT, expected, requests)
assert.Assert(subT, utils.Index(requests, func(r reconcile.Request) bool {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

order does not matter and it was enforced by the test

Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.75%. Comparing base (ece13e8) to head (4b247c0).
Report is 140 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #774      +/-   ##
==========================================
+ Coverage   80.20%   82.75%   +2.54%     
==========================================
  Files          64       77      +13     
  Lines        4492     6101    +1609     
==========================================
+ Hits         3603     5049    +1446     
- Misses        600      698      +98     
- Partials      289      354      +65     
Flag Coverage Δ
bare-k8s-integration 4.46% <ø> (?)
controllers-integration 72.46% <ø> (?)
gatewayapi-integration 10.86% <ø> (?)
integration ?
istio-integration 56.47% <ø> (?)
unit 33.68% <ø> (+3.65%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
api/v1beta1 (u) 71.42% <ø> (ø)
api/v1beta2 (u) 90.81% <87.20%> (-0.62%) ⬇️
pkg/common (u) 88.13% <ø> (-0.70%) ⬇️
pkg/istio (u) 73.88% <ø> (-0.03%) ⬇️
pkg/log (u) 94.73% <ø> (ø)
pkg/reconcilers (u) ∅ <ø> (∅)
pkg/rlptools (u) 83.64% <ø> (+4.19%) ⬆️
controllers (i) 82.19% <84.66%> (+5.39%) ⬆️

see 41 files with indirect coverage changes

@eguzki eguzki merged commit 94d1152 into main Jul 23, 2024
27 checks passed
@eguzki eguzki deleted the fix-flaky-test branch July 23, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants