Skip to content

Commit

Permalink
Add tSkipShortExternal to the new network tests
Browse files Browse the repository at this point in the history
In d785ba5, new tests were added that rely on network.

We're adding the tSkipShortExternal option to bypass them in -short mode.
  • Loading branch information
eclipseo committed Aug 5, 2023
1 parent 4c6cf79 commit 2d1eb4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htmltest/htmltest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func TestConcurrencyDirExternals(t *testing.T) {
}

func TestRedirectLimitDefault(t *testing.T) {
tSkipShortExternal(t)
hT := tTestFileOpts("fixtures/links/http_no_redirect.html",
map[string]interface{}{"RedirectLimit": -2})
tExpectIssueCount(t, hT, 0)
Expand All @@ -137,6 +138,7 @@ func TestRedirectLimitDefault(t *testing.T) {
}

func TestRedirectLimitOk(t *testing.T) {
tSkipShortExternal(t)
hT := tTestFileOpts("fixtures/links/http_no_redirect.html",
map[string]interface{}{"RedirectLimit": 0})
tExpectIssueCount(t, hT, 0)
Expand All @@ -146,6 +148,7 @@ func TestRedirectLimitOk(t *testing.T) {
}

func TestRedirectLimitExceeded(t *testing.T) {
tSkipShortExternal(t)
hT := tTestFileOpts("fixtures/links/http_one_redirect.html",
map[string]interface{}{"RedirectLimit": 0})
tExpectIssueCount(t, hT, 1)
Expand Down

0 comments on commit 2d1eb4a

Please sign in to comment.