Skip to content

Commit

Permalink
fix: skip YT-blocked test in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
cybardev committed Nov 18, 2024
1 parent 05f1797 commit d067517
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: go build -C cmd/ytgo -o "../../bin/ytgo"

- name: Run tests
run: go test -v -coverprofile=coverage.out ./cmd/ytgo
run: go test -short -v -coverprofile=coverage.out ./cmd/ytgo

- name: Report Coverage
uses: shogo82148/actions-goveralls@v1
Expand Down
4 changes: 4 additions & 0 deletions cmd/ytgo/yt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func TestGetRequest(t *testing.T) {
}

func TestGetVideoFromURL(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode")
}

var wg sync.WaitGroup
wg.Add(len(vs))

Expand Down

0 comments on commit d067517

Please sign in to comment.