aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-03-21 16:44:38 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2018-03-21 16:44:38 +0100
commit4127002950de52da1a5bed93653e54e3cc9ee617 (patch)
tree9d365bd292b2866ab653de47eb0cc460a9528687 /plumbing
parenta39fae69325f5a1faf8fe1b512124f3b77e8612d (diff)
downloadgo-git-4127002950de52da1a5bed93653e54e3cc9ee617.tar.gz
*: skip time consuming tests
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/format/packfile/encoder_advanced_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/plumbing/format/packfile/encoder_advanced_test.go b/plumbing/format/packfile/encoder_advanced_test.go
index 1075875..8cc7180 100644
--- a/plumbing/format/packfile/encoder_advanced_test.go
+++ b/plumbing/format/packfile/encoder_advanced_test.go
@@ -3,6 +3,7 @@ package packfile_test
import (
"bytes"
"math/rand"
+ "testing"
"gopkg.in/src-d/go-git.v4/plumbing"
. "gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
@@ -21,6 +22,10 @@ type EncoderAdvancedSuite struct {
var _ = Suite(&EncoderAdvancedSuite{})
func (s *EncoderAdvancedSuite) TestEncodeDecode(c *C) {
+ if testing.Short() {
+ c.Skip("skipping test in short mode.")
+ }
+
fixs := fixtures.Basic().ByTag("packfile").ByTag(".git")
fixs = append(fixs, fixtures.ByURL("https://github.com/src-d/go-git.git").
ByTag("packfile").ByTag(".git").One())
@@ -33,6 +38,10 @@ func (s *EncoderAdvancedSuite) TestEncodeDecode(c *C) {
}
func (s *EncoderAdvancedSuite) TestEncodeDecodeNoDeltaCompression(c *C) {
+ if testing.Short() {
+ c.Skip("skipping test in short mode.")
+ }
+
fixs := fixtures.Basic().ByTag("packfile").ByTag(".git")
fixs = append(fixs, fixtures.ByURL("https://github.com/src-d/go-git.git").
ByTag("packfile").ByTag(".git").One())