Skip to content

Commit 10d6b63

Browse files
committed
fix: skip flaky live test during CI
1 parent e1e7cd0 commit 10d6b63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/skillhub/client_live_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ package skillhub_test
22

33
import (
44
"fmt"
5+
"os"
56
"strings"
67
"testing"
78

89
"github.com/yeasy/ask/internal/skillhub"
910
)
1011

1112
func TestSkillHubLive(t *testing.T) {
13+
if os.Getenv("ASK_LIVE_TESTS") != "1" {
14+
t.Skip("Skipping live test; set ASK_LIVE_TESTS=1 to run")
15+
}
16+
1217
client := skillhub.NewClient()
1318

1419
// Test Search

0 commit comments

Comments
 (0)