Skip to content

Commit

Permalink
add possible error message patterns
Browse files Browse the repository at this point in the history
Signed-off-by: akihikokuroda <akihikokuroda2020@gmail.com>
  • Loading branch information
akihikokuroda committed Jan 14, 2022
1 parent c914d09 commit 70f7b94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/registry/resolver/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func TestSolveOperators_WithSystemConstraints(t *testing.T) {
{
title: "Runtime constraints don't allow A",
snapshotEntries: []*cache.Entry{packageA, packageB, packageC, packageD},
systemConstraintsProvider: whiteListConstraintProvider(),
systemConstraintsProvider: whiteListConstraintProvider(packageB, packageC, packageD),
expectedOperators: nil,
csvs: nil,
subs: []*v1alpha1.Subscription{packageASub},
Expand All @@ -159,7 +159,6 @@ func TestSolveOperators_WithSystemConstraints(t *testing.T) {
systemConstraintsProvider: testCase.systemConstraintsProvider,
}
operators, err := satResolver.SolveOperators([]string{namespace}, testCase.csvs, testCase.subs)

if testCase.err != "" {
require.Containsf(t, err.Error(), testCase.err, "Test %s failed", testCase.title)
} else {
Expand Down

0 comments on commit 70f7b94

Please sign in to comment.