Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 57e95cc

Browse files
committed
Skip slower gps tests on -short
1 parent a87f8cc commit 57e95cc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

internal/gps/source_manager_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import (
1313
)
1414

1515
func TestSourceManager_InferConstraint(t *testing.T) {
16+
if testing.Short() {
17+
t.Skip("Skipping slow test in short mode")
18+
}
19+
1620
t.Parallel()
1721

1822
// Used in git subtests:

internal/gps/vcs_version_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import (
1212
)
1313

1414
func TestVCSVersion(t *testing.T) {
15+
if testing.Short() {
16+
t.Skip("Skipping slow test in short mode")
17+
}
18+
1519
h := test.NewHelper(t)
1620
defer h.Cleanup()
1721
requiresBins(t, "git")

0 commit comments

Comments
 (0)