Skip to content

Commit

Permalink
chore: change skipping logic to use -short instead of env var
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiamoe committed Jan 27, 2025
1 parent 569f289 commit ba140d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"strings"
"testing"
Expand All @@ -25,9 +24,8 @@ import (
func TestIntegration(t *testing.T) {
t.Parallel()

skipEnv := "TEST_INTEGRATION_SKIP"
if os.Getenv(skipEnv) != "" {
t.Skipf("Skipping integration test as %q not empty", skipEnv)
if testing.Short() {
t.Skipf("Skipping integration test due to -short")
}

ctx, cancel := context.WithCancel(context.Background())
Expand Down

0 comments on commit ba140d6

Please sign in to comment.