Skip to content

Commit 4e03406

Browse files
committed
fix: validARN test scenario
1 parent bfb06db commit 4e03406

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/verify/validate_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ func TestValidARN(t *testing.T) {
179179

180180
v := ""
181181
_, errors := ValidARN(v, "arn")
182-
if len(errors) != 0 {
182+
// Expected output "Error: arn cannot be empty"
183+
if len(errors) == 0 {
183184
t.Fatalf("%q should not be validated as an ARN: %q", v, errors)
184185
}
185186

0 commit comments

Comments
 (0)