Skip to content

Commit

Permalink
Merge pull request #219 from eclipseo/eclipseo-patch-1
Browse files Browse the repository at this point in the history
Add tSkipShortExternal to the new network tests
  • Loading branch information
wjdp committed Aug 18, 2023
2 parents 4c6cf79 + 2d1eb4a commit 472684d
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 472684d

Please sign in to comment.