Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Devtools committed Nov 26, 2024
1 parent a61de18 commit 7665e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/parallel/nstemplatetier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ func TestTierTemplateRevision(t *testing.T) {
// But since the creation of a TTR could be very quick and could trigger another reconcile of the NSTemplateTier before the status is actually updated with the reference,
// this might generate some copies of the TTRs. This is not a problem in production since the cleanup mechanism of TTRs will remove the extra ones but could cause some flakiness with the test,
// thus we assert the number of TTRs doesn't exceed the double of the expected number.
assert.LessOrEqual(t, objs.Items, 6)
assert.LessOrEqual(t, len(objs.Items), 6)
// we check that the TTR content has the parameters replaced with values from the NSTemplateTier
for _, obj := range objs.Items {
assert.Contains(t, string(obj.Spec.TemplateObjects[0].Raw), "janedoe") // the object should have the namespace name replaced
Expand Down

0 comments on commit 7665e00

Please sign in to comment.