From a1d9361e2383684b37d282f1fa47e2bc34a2e9bd Mon Sep 17 00:00:00 2001 From: Sascha Brawer Date: Tue, 14 May 2024 15:23:52 +0200 Subject: [PATCH] Skip more long-running tests when running `go test -short` --- cmd/qrank-builder/pageviews_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/qrank-builder/pageviews_test.go b/cmd/qrank-builder/pageviews_test.go index 71b6003..5ba3e84 100644 --- a/cmd/qrank-builder/pageviews_test.go +++ b/cmd/qrank-builder/pageviews_test.go @@ -145,6 +145,10 @@ func TestCombineCounts(t *testing.T) { } func TestBuildPageviews(t *testing.T) { + if testing.Short() { + t.Skip() + } + logger = log.New(&bytes.Buffer{}, "", log.Lshortfile) ctx := context.Background() dumps := filepath.Join("testdata", "dumps") @@ -187,6 +191,10 @@ func TestStoredPageviews(t *testing.T) { } func TestBuildWeeklyPageviews(t *testing.T) { + if testing.Short() { + t.Skip() + } + logger = log.New(&bytes.Buffer{}, "", log.Lshortfile) ctx := context.Background() dumps := filepath.Join("testdata", "dumps")