Skip to content

Commit 8342a18

Browse files
committed
fix error assertions
1 parent 84f0a89 commit 8342a18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provider/parameter_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func TestParameter(t *testing.T) {
291291
}
292292
}
293293
`,
294-
ExpectError: regexp.MustCompile("cannot have the same name"),
294+
ExpectError: regexp.MustCompile("Option names must be unique"),
295295
}, {
296296
Name: "DuplicateOptionValue",
297297
Config: `
@@ -308,7 +308,7 @@ func TestParameter(t *testing.T) {
308308
}
309309
}
310310
`,
311-
ExpectError: regexp.MustCompile("cannot have the same value"),
311+
ExpectError: regexp.MustCompile("Option values must be unique"),
312312
}, {
313313
Name: "RequiredParameterNoDefault",
314314
Config: `

0 commit comments

Comments
 (0)