Skip to content

Commit

Permalink
fix: validARN test scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRieske committed May 13, 2024
1 parent bfb06db commit 4e03406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/verify/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ func TestValidARN(t *testing.T) {

v := ""
_, errors := ValidARN(v, "arn")
if len(errors) != 0 {
// Expected output "Error: arn cannot be empty"
if len(errors) == 0 {
t.Fatalf("%q should not be validated as an ARN: %q", v, errors)
}

Expand Down

0 comments on commit 4e03406

Please sign in to comment.