From 08af44910d1f1b4a8b6fe61df6307ea9c742cb58 Mon Sep 17 00:00:00 2001 From: Zapharaos Date: Mon, 10 Feb 2025 12:08:37 +0100 Subject: [PATCH] fix(test): ci coverage command + minor bad test assertion --- .github/workflows/golang.yml | 2 +- internal/auth/auth_test.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/golang.yml b/.github/workflows/golang.yml index a304b16..3aaf9ca 100644 --- a/.github/workflows/golang.yml +++ b/.github/workflows/golang.yml @@ -31,7 +31,7 @@ jobs: run: go build -v ./... - name: Test with coverage - run: go test -race -suffle=on -v -coverprofile=coverage.out ./... + run: go test ./... -race -shuffle=on -coverprofile coverage.out - name: Upload results to Codecov uses: codecov/codecov-action@v5 diff --git a/internal/auth/auth_test.go b/internal/auth/auth_test.go index 6cebc33..8c1ee65 100644 --- a/internal/auth/auth_test.go +++ b/internal/auth/auth_test.go @@ -118,9 +118,6 @@ func TestGetToken(t *testing.T) { assert.Fail(t, "failed to decode response") } err = json.Unmarshal(data, &token) - if err != nil { - assert.Fail(t, "failed to decode response") - } // Check the response assert.Equal(t, tt.status, response.StatusCode)