From d067517640a8af29b4dedac0ac0cb89ffe6ea646 Mon Sep 17 00:00:00 2001 From: cybardev Date: Sun, 17 Nov 2024 22:21:23 -0400 Subject: [PATCH] fix: skip YT-blocked test in pipeline --- .github/workflows/test.yml | 2 +- cmd/ytgo/yt_test.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0644900..176bc6d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/cmd/ytgo/yt_test.go b/cmd/ytgo/yt_test.go index c29434a..2ddfee8 100644 --- a/cmd/ytgo/yt_test.go +++ b/cmd/ytgo/yt_test.go @@ -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))