From 4127002950de52da1a5bed93653e54e3cc9ee617 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Wed, 21 Mar 2018 16:44:38 +0100 Subject: *: skip time consuming tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Máximo Cuadros --- repository_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'repository_test.go') 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) } -- cgit