From 99d725016da275d8fc7da869a6c08da5c3686406 Mon Sep 17 00:00:00 2001 From: Caleb Brown Date: Tue, 16 Jan 2024 11:07:36 +1100 Subject: [PATCH] Disable pypi artifacts test (#418) * Pass in the correct error to Fatalf so we know what is broken. Signed-off-by: Caleb Brown * Disable TestPyPIArtifactsLive temporarily until #417 is fixed. Signed-off-by: Caleb Brown --------- Signed-off-by: Caleb Brown --- .github/workflows/ci.yml | 2 +- pkg/feeds/pypi/pypi_artifacts_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e0467b3..4dcc5cc7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: go-version: '1.20' - name: Run tests - run: go test -v ./... + run: go test -v -skip TestPyPIArtifactsLive ./... build-verify: runs-on: ubuntu-latest diff --git a/pkg/feeds/pypi/pypi_artifacts_test.go b/pkg/feeds/pypi/pypi_artifacts_test.go index 826410d7..622bad76 100644 --- a/pkg/feeds/pypi/pypi_artifacts_test.go +++ b/pkg/feeds/pypi/pypi_artifacts_test.go @@ -405,7 +405,7 @@ func TestPyPIArtifactsLive(t *testing.T) { cutoff := time.Now().AddDate(0, 0, -1) pkgs, gotCutoff, errs := feed.Latest(cutoff) if len(errs) != 0 { - t.Fatalf("feed.Latest returned error: %v", err) + t.Fatalf("feed.Latest returned error: %v", errs) } if cutoff == gotCutoff {