Skip to content

Commit ee4a556

Browse files
committed
PDOK-18065 Atom-Operator - validation unit-tests
1 parent 0215808 commit ee4a556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/webhook/v3/atom_webhook_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ var _ = Describe("Atom Webhook", func() {
155155

156156
fmt.Printf("actual-error test 5 atom-webhook is: \n%v\n", errorsUpdate.Error())
157157
expectedError := errors.New("Atom.pdok.nl \"asis-readonly-prod\" is invalid: metadata.labels.pdok.nl/dataset-id: Invalid value: \"wetlands-changed\": immutable: should be wetlands")
158-
Expect(strings.Replace(expectedError.Error(), ":", "", -1)).To(Equal(strings.Replace(errorsUpdate.Error(), ":", "", -1)))
158+
Expect(strings.ReplaceAll(expectedError.Error(), ":", "")).To(Equal(strings.ReplaceAll(errorsUpdate.Error(), ":", "")))
159159
Expect(len(warningsUpdate)).To(Equal(0))
160160
})
161161

0 commit comments

Comments
 (0)