aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-03-22 09:30:41 +0100
committerGitHub <noreply@github.com>2018-03-22 09:30:41 +0100
commit160e6d5b654fbbaf0d9264f226c56a03f0e27d30 (patch)
tree9d365bd292b2866ab653de47eb0cc460a9528687 /worktree_test.go
parenta39fae69325f5a1faf8fe1b512124f3b77e8612d (diff)
parent4127002950de52da1a5bed93653e54e3cc9ee617 (diff)
downloadgo-git-160e6d5b654fbbaf0d9264f226c56a03f0e27d30.tar.gz
Merge pull request #786 from mcuadros/test-short
*: skip time consuming tests
Diffstat (limited to 'worktree_test.go')
-rw-r--r--worktree_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/worktree_test.go b/worktree_test.go
index cb2e5e2..b3e0a1a 100644
--- a/worktree_test.go
+++ b/worktree_test.go
@@ -8,6 +8,7 @@ import (
"path/filepath"
"regexp"
"runtime"
+ "testing"
"gopkg.in/src-d/go-git.v4/config"
"gopkg.in/src-d/go-git.v4/plumbing"
@@ -196,6 +197,10 @@ func (s *WorktreeSuite) TestPullProgress(c *C) {
}
func (s *WorktreeSuite) TestPullProgressWithRecursion(c *C) {
+ if testing.Short() {
+ c.Skip("skipping test in short mode.")
+ }
+
path := fixtures.ByTag("submodule").One().Worktree().Root()
dir, err := ioutil.TempDir("", "plain-clone-submodule")
@@ -613,6 +618,10 @@ func (s *WorktreeSuite) TestCheckoutTag(c *C) {
}
func (s *WorktreeSuite) TestCheckoutBisect(c *C) {
+ if testing.Short() {
+ c.Skip("skipping test in short mode.")
+ }
+
s.testCheckoutBisect(c, "https://github.com/src-d/go-git.git")
}