diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-22 04:15:47 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-22 04:15:47 +0700 |
| commit | a33efc3992f58355eb98d7a5574df955952924b8 (patch) | |
| tree | 4a7d00be605fff1980a14a4c2c33a60ec91bc71b /brokenlinks/brokenlinks_test.go | |
| parent | a559b47dc217793ca7f80121b3ea86f03e47afd3 (diff) | |
| download | jarink-a33efc3992f58355eb98d7a5574df955952924b8.tar.xz | |
all: mark and skip the slow test
The TestScan_slow takes around ~11 seconds due to test include
[time.Sleep].
Diffstat (limited to 'brokenlinks/brokenlinks_test.go')
| -rw-r--r-- | brokenlinks/brokenlinks_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
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`) |
