Skip to content

Commit c36183e

Browse files
authored
Address fail forward unit test failures (#2747)
The broken replacement chain unit test occasionally fails because it is possible for either the a.v1 or a.v2 operators to cause the resolver to fail. This commit updates the test to check that the resolver fails because a csv is in the failed state versus checking that a specific csv is in the failed state. Signed-off-by: Alexander Greene <[email protected]>
1 parent 462ce61 commit c36183e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/controller/registry/resolver/step_resolver_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,8 @@ func TestResolver(t *testing.T) {
11821182
steps: [][]*v1alpha1.Step{},
11831183
subs: []*v1alpha1.Subscription{},
11841184
errAssert: func(t *testing.T, err error) {
1185-
assert.Contains(t, err.Error(), "error using catalog @existing (in namespace catsrc-namespace): csv catsrc-namespace/a.v1 in phase Failed instead of Replacing")
1185+
assert.Contains(t, err.Error(), "error using catalog @existing (in namespace catsrc-namespace): csv")
1186+
assert.Contains(t, err.Error(), "in phase Failed instead of Replacing")
11861187
},
11871188
},
11881189
},

0 commit comments

Comments
 (0)