aboutsummaryrefslogtreecommitdiffstats
path: root/formats/idxfile
diff options
context:
space:
mode:
Diffstat (limited to 'formats/idxfile')
-rw-r--r--formats/idxfile/decoder_test.go6
-rw-r--r--formats/idxfile/encoder_test.go4
2 files changed, 4 insertions, 6 deletions
diff --git a/formats/idxfile/decoder_test.go b/formats/idxfile/decoder_test.go
index cd90465..8ce2bc7 100644
--- a/formats/idxfile/decoder_test.go
+++ b/formats/idxfile/decoder_test.go
@@ -13,7 +13,9 @@ import (
func Test(t *testing.T) { TestingT(t) }
-type IdxfileSuite struct{}
+type IdxfileSuite struct {
+ fixtures.Suite
+}
var _ = Suite(&IdxfileSuite{})
@@ -35,7 +37,7 @@ func (s *IdxfileSuite) TestDecode(c *C) {
}
func (s *IdxfileSuite) TestDecodeCRCs(c *C) {
- f := fixtures.Basic().ByTag("ofs-delta")
+ f := fixtures.Basic().ByTag("ofs-delta").One()
scanner := packfile.NewScanner(f.Packfile())
storage := memory.NewStorage()
diff --git a/formats/idxfile/encoder_test.go b/formats/idxfile/encoder_test.go
index 380b8e8..d9d83eb 100644
--- a/formats/idxfile/encoder_test.go
+++ b/formats/idxfile/encoder_test.go
@@ -9,10 +9,6 @@ import (
"gopkg.in/src-d/go-git.v4/fixtures"
)
-func (s *IdxfileSuite) SetUpSuite(c *C) {
- fixtures.RootFolder = "../../fixtures"
-}
-
func (s *IdxfileSuite) TestEncode(c *C) {
expected := &Idxfile{}
expected.Add(core.NewHash("4bfc730165c370df4a012afbb45ba3f9c332c0d4"), 82, 82)