Skip to content

Commit

Permalink
test: fix invalid pkg case
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed May 1, 2024
1 parent 31ba60d commit 5532ae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/vale/pkg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ func TestNoPkgFound(t *testing.T) {
t.Fatal(err)
}

err = readPkg("https://github.com/errata-ai/Microsoft/releases/download/v0.14.1/Microsoft.zip", path, 0)
err = readPkg("https://github.com/errata-ai/Microsoft/releases/download/v0.14.x/Microsoft.zip", path, 0)
if err == nil {
t.Fatal("expected error, got nil")
}

msg := "could not fetch 'https://github.com/errata-ai/Microsoft/releases/download/v0.14.1/Microsoft.zip' (status code '404')"
msg := "could not fetch 'https://github.com/errata-ai/Microsoft/releases/download/v0.14.x/Microsoft.zip' (status code '404')"
if !strings.Contains(err.Error(), msg) {
t.Fatalf("expected '%s', got '%s'", msg, err.Error())
}
Expand Down

0 comments on commit 5532ae3

Please sign in to comment.