diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | brokenlinks/brokenlinks_test.go | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -14,7 +14,7 @@ lint: .PHONY: test test: - CGO_ENABLED=1 go test -failfast -timeout=1m -race \ + CGO_ENABLED=1 go test -failfast -timeout=1m -race -short -v \ -coverprofile=$(COVER_OUT) ./... go tool cover -html=$(COVER_OUT) -o $(COVER_HTML) diff --git a/brokenlinks/brokenlinks_test.go b/brokenlinks/brokenlinks_test.go index eedad33..f251165 100644 --- a/brokenlinks/brokenlinks_test.go +++ b/brokenlinks/brokenlinks_test.go @@ -479,6 +479,10 @@ func TestScan_pastResult(t *testing.T) { } func TestScan_slow(t *testing.T) { + if testing.Short() { + t.Skip("skipping test in short mode.") + } + const testUrl = `http://` + testAddressSlow parsedUrlSlow1, err := url.Parse(testUrl + `/slow1`) |
