Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/ghcredentials/host_real_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import (

func requireRealGH(t *testing.T) {
t.Helper()
if testing.Short() {
// The CPU-contended -short unit tier can exceed the 1.5s token lookup
// budget; the GitHub Credential Host Tests job runs these uncontended.
t.Skip("real gh runs in the GitHub Credential Host Tests job")
}
if _, err := exec.LookPath("gh"); err != nil {
if os.Getenv("DEVSY_TEST_REAL_GH") == "1" {
require.NoError(t, err)
Expand Down
Loading