diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2018-03-21 16:44:38 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2018-03-21 16:44:38 +0100 |
commit | 4127002950de52da1a5bed93653e54e3cc9ee617 (patch) | |
tree | 9d365bd292b2866ab653de47eb0cc460a9528687 /repository_test.go | |
parent | a39fae69325f5a1faf8fe1b512124f3b77e8612d (diff) | |
download | go-git-4127002950de52da1a5bed93653e54e3cc9ee617.tar.gz |
*: skip time consuming tests
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
Diffstat (limited to 'repository_test.go')
-rw-r--r-- | repository_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/repository_test.go b/repository_test.go index 1ad1607..f39f358 100644 --- a/repository_test.go +++ b/repository_test.go @@ -10,6 +10,7 @@ import ( "os/exec" "path/filepath" "strings" + "testing" "time" "gopkg.in/src-d/go-git.v4/config" @@ -430,6 +431,10 @@ func (s *RepositorySuite) TestPlainCloneContext(c *C) { } func (s *RepositorySuite) TestPlainCloneWithRecurseSubmodules(c *C) { + if testing.Short() { + c.Skip("skipping test in short mode.") + } + dir, err := ioutil.TempDir("", "plain-clone-submodule") c.Assert(err, IsNil) defer os.RemoveAll(dir) @@ -1396,10 +1401,18 @@ func (s *RepositorySuite) testRepackObjects( } func (s *RepositorySuite) TestRepackObjects(c *C) { + if testing.Short() { + c.Skip("skipping test in short mode.") + } + s.testRepackObjects(c, time.Time{}, 1) } func (s *RepositorySuite) TestRepackObjectsWithNoDelete(c *C) { + if testing.Short() { + c.Skip("skipping test in short mode.") + } + s.testRepackObjects(c, time.Unix(0, 1), 3) } |