Skip to content

Commit 413f8f9

Browse files
tmshortclaude
andcommitted
fix: update test to match semver v3.5.0 error message format
Masterminds/semver v3.5.0 changed constraint error messages to quote the invalid constraint value: "foobar" instead of foobar. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Todd Short <tshort@redhat.com>
1 parent c57bcf5 commit 413f8f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/operator-controller/resolve/catalog_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestInvalidClusterExtensionVersionRange(t *testing.T) {
2727
pkgName := randPkg()
2828
ce := buildFooClusterExtension(pkgName, []string{}, "foobar", ocv1.UpgradeConstraintPolicyCatalogProvided)
2929
_, _, _, err := r.Resolve(context.Background(), ce, nil)
30-
assert.EqualError(t, err, `desired version range "foobar" is invalid: improper constraint: foobar`)
30+
assert.EqualError(t, err, `desired version range "foobar" is invalid: improper constraint: "foobar"`)
3131
}
3232

3333
func TestErrorWalkingCatalogs(t *testing.T) {

0 commit comments

Comments
 (0)