From fd20c51db5b9dea2da3ca427b1dbe8a17f3b57f4 Mon Sep 17 00:00:00 2001 From: Caleb Brown Date: Mon, 15 Jan 2024 23:28:06 +0000 Subject: [PATCH 1/2] Pass in the correct error to Fatalf so we know what is broken. Signed-off-by: Caleb Brown --- pkg/feeds/pypi/pypi_artifacts_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { From 8d11c6845de39015a0f5e8edca08cac2a5f61769 Mon Sep 17 00:00:00 2001 From: Caleb Brown Date: Mon, 15 Jan 2024 23:28:44 +0000 Subject: [PATCH 2/2] Disable TestPyPIArtifactsLive temporarily until #417 is fixed. Signed-off-by: Caleb Brown --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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