aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/packfile
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2020-03-15 21:18:32 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2020-03-15 21:18:32 +0100
commit9d0f15c4fa712cdacfa3887e9baac918f093fbf6 (patch)
treeeb1a4db1169ba4bb9ae58727a462d54f93f5f85c /plumbing/format/packfile
parent8fe5ed769fa01a42eafb3b7f064ffe8e0d436408 (diff)
downloadgo-git-9d0f15c4fa712cdacfa3887e9baac918f093fbf6.tar.gz
ci: based on github actionsv5.0.0
Diffstat (limited to 'plumbing/format/packfile')
-rw-r--r--plumbing/format/packfile/parser_test.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/plumbing/format/packfile/parser_test.go b/plumbing/format/packfile/parser_test.go
index fb5fb7f..57a9c17 100644
--- a/plumbing/format/packfile/parser_test.go
+++ b/plumbing/format/packfile/parser_test.go
@@ -192,11 +192,7 @@ func (t *testObserver) put(pos int64, o observerObject) {
}
func BenchmarkParse(b *testing.B) {
- defer func() {
- if err := fixtures.Clean(); err != nil {
- b.Fatal(err)
- }
- }()
+ defer fixtures.Clean()
for _, f := range fixtures.ByTag("packfile") {
b.Run(f.URL, func(b *testing.B) {
@@ -216,11 +212,7 @@ func BenchmarkParse(b *testing.B) {
}
func BenchmarkParseBasic(b *testing.B) {
- defer func() {
- if err := fixtures.Clean(); err != nil {
- b.Fatal(err)
- }
- }()
+ defer fixtures.Clean()
f := fixtures.Basic().One()
for i := 0; i < b.N; i++ {