aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/packfile/parser_test.go
diff options
context:
space:
mode:
authorpaul.t <paul.t@gembaadvantage.com>2022-01-05 06:54:15 +0000
committerpaul.t <paul.t@gembaadvantage.com>2022-01-05 06:54:15 +0000
commitbf57a4c6a53423d92aeeadf1bc02877cc80459d4 (patch)
tree5fc41da16c024d40c33ebf2569e2c62717cb4a29 /plumbing/format/packfile/parser_test.go
parent8d923a6fb77d7916da2df33e5a65e038cceef4e1 (diff)
downloadgo-git-bf57a4c6a53423d92aeeadf1bc02877cc80459d4.tar.gz
remove packfile and align to test fixtures
Diffstat (limited to 'plumbing/format/packfile/parser_test.go')
-rw-r--r--plumbing/format/packfile/parser_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/plumbing/format/packfile/parser_test.go b/plumbing/format/packfile/parser_test.go
index 9c7e218..09f3f97 100644
--- a/plumbing/format/packfile/parser_test.go
+++ b/plumbing/format/packfile/parser_test.go
@@ -133,10 +133,9 @@ func (s *ParserSuite) TestThinPack(c *C) {
}
func (s *ParserSuite) TestResolveExternalRefsInThinPack(c *C) {
- f, err := os.Open("testdata/pack-9733763ae7ee6efcf452d373d6fff77424fb1dcc.pack")
- c.Assert(err, IsNil)
+ extRefsThinPack := fixtures.ByTag("codecommit").One()
- scanner := packfile.NewScanner(f)
+ scanner := packfile.NewScanner(extRefsThinPack.Packfile())
obs := new(testObserver)
parser, err := packfile.NewParser(scanner, obs)