aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/packfile/packfile_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format/packfile/packfile_test.go')
-rw-r--r--plumbing/format/packfile/packfile_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/format/packfile/packfile_test.go b/plumbing/format/packfile/packfile_test.go
index a17a483..e234794 100644
--- a/plumbing/format/packfile/packfile_test.go
+++ b/plumbing/format/packfile/packfile_test.go
@@ -45,7 +45,7 @@ func (s *PackfileSuite) TestGetByOffset(c *C) {
}
_, err := s.p.GetByOffset(math.MaxInt64)
- c.Assert(err, Equals, io.EOF)
+ c.Assert(err, Equals, plumbing.ErrObjectNotFound)
}
func (s *PackfileSuite) TestID(c *C) {
@@ -153,7 +153,7 @@ func (s *PackfileSuite) TestContent(c *C) {
func (s *PackfileSuite) SetUpTest(c *C) {
s.f = fixtures.Basic().One()
- f, err := osfs.New("/").Open(s.f.Packfile().Name())
+ f, err := osfs.New("").Open(s.f.Packfile().Name())
c.Assert(err, IsNil)
s.idx = idxfile.NewMemoryIndex()