diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2018-03-22 09:30:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-22 09:30:41 +0100 |
commit | 160e6d5b654fbbaf0d9264f226c56a03f0e27d30 (patch) | |
tree | 9d365bd292b2866ab653de47eb0cc460a9528687 /submodule_test.go | |
parent | a39fae69325f5a1faf8fe1b512124f3b77e8612d (diff) | |
parent | 4127002950de52da1a5bed93653e54e3cc9ee617 (diff) | |
download | go-git-160e6d5b654fbbaf0d9264f226c56a03f0e27d30.tar.gz |
Merge pull request #786 from mcuadros/test-short
*: skip time consuming tests
Diffstat (limited to 'submodule_test.go')
-rw-r--r-- | submodule_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/submodule_test.go b/submodule_test.go index bea5a0f..7c97179 100644 --- a/submodule_test.go +++ b/submodule_test.go @@ -5,6 +5,7 @@ import ( "io/ioutil" "os" "path/filepath" + "testing" "gopkg.in/src-d/go-git.v4/plumbing" @@ -66,6 +67,10 @@ func (s *SubmoduleSuite) TestInit(c *C) { } func (s *SubmoduleSuite) TestUpdate(c *C) { + if testing.Short() { + c.Skip("skipping test in short mode.") + } + sm, err := s.Worktree.Submodule("basic") c.Assert(err, IsNil) @@ -118,6 +123,10 @@ func (s *SubmoduleSuite) TestUpdateWithNotFetch(c *C) { } func (s *SubmoduleSuite) TestUpdateWithRecursion(c *C) { + if testing.Short() { + c.Skip("skipping test in short mode.") + } + sm, err := s.Worktree.Submodule("itself") c.Assert(err, IsNil) @@ -134,6 +143,10 @@ func (s *SubmoduleSuite) TestUpdateWithRecursion(c *C) { } func (s *SubmoduleSuite) TestUpdateWithInitAndUpdate(c *C) { + if testing.Short() { + c.Skip("skipping test in short mode.") + } + sm, err := s.Worktree.Submodule("basic") c.Assert(err, IsNil) @@ -193,6 +206,10 @@ func (s *SubmoduleSuite) TestSubmodulesStatus(c *C) { } func (s *SubmoduleSuite) TestSubmodulesUpdateContext(c *C) { + if testing.Short() { + c.Skip("skipping test in short mode.") + } + sm, err := s.Worktree.Submodules() c.Assert(err, IsNil) |