Skip to content

Commit

Permalink
Disable pypi artifacts test (#418)
Browse files Browse the repository at this point in the history
* Pass in the correct error to Fatalf so we know what is broken.

Signed-off-by: Caleb Brown <calebbrown@google.com>

* Disable TestPyPIArtifactsLive temporarily until #417 is fixed.

Signed-off-by: Caleb Brown <calebbrown@google.com>

---------

Signed-off-by: Caleb Brown <calebbrown@google.com>
  • Loading branch information
calebbrown authored Jan 16, 2024
1 parent b3f38b2 commit 99d7250
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/feeds/pypi/pypi_artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 99d7250

Please sign in to comment.