diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-03-15 21:18:32 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2020-03-15 21:18:32 +0100 |
commit | 9d0f15c4fa712cdacfa3887e9baac918f093fbf6 (patch) | |
tree | eb1a4db1169ba4bb9ae58727a462d54f93f5f85c /storage | |
parent | 8fe5ed769fa01a42eafb3b7f064ffe8e0d436408 (diff) | |
download | go-git-9d0f15c4fa712cdacfa3887e9baac918f093fbf6.tar.gz |
ci: based on github actionsv5.0.0
Diffstat (limited to 'storage')
-rw-r--r-- | storage/filesystem/object_test.go | 18 | ||||
-rw-r--r-- | storage/test/storage_suite.go | 2 |
2 files changed, 4 insertions, 16 deletions
diff --git a/storage/filesystem/object_test.go b/storage/filesystem/object_test.go index 6c35129..2d6f568 100644 --- a/storage/filesystem/object_test.go +++ b/storage/filesystem/object_test.go @@ -333,11 +333,7 @@ func (s *FsSuite) TestGetFromObjectFileSharedCache(c *C) { } func BenchmarkPackfileIter(b *testing.B) { - defer func() { - if err := fixtures.Clean(); err != nil { - b.Fatal(err) - } - }() + defer fixtures.Clean() for _, f := range fixtures.ByTag(".git") { b.Run(f.URL, func(b *testing.B) { @@ -385,11 +381,7 @@ func BenchmarkPackfileIter(b *testing.B) { } func BenchmarkPackfileIterReadContent(b *testing.B) { - defer func() { - if err := fixtures.Clean(); err != nil { - b.Fatal(err) - } - }() + defer fixtures.Clean() for _, f := range fixtures.ByTag(".git") { b.Run(f.URL, func(b *testing.B) { @@ -447,11 +439,7 @@ func BenchmarkPackfileIterReadContent(b *testing.B) { } func BenchmarkGetObjectFromPackfile(b *testing.B) { - defer func() { - if err := fixtures.Clean(); err != nil { - b.Fatal(err) - } - }() + defer fixtures.Clean() for _, f := range fixtures.Basic() { b.Run(f.URL, func(b *testing.B) { diff --git a/storage/test/storage_suite.go b/storage/test/storage_suite.go index a646fad..d87a7dd 100644 --- a/storage/test/storage_suite.go +++ b/storage/test/storage_suite.go @@ -66,7 +66,7 @@ func NewBaseStorageSuite(s Storer) BaseStorageSuite { } func (s *BaseStorageSuite) TearDownTest(c *C) { - c.Assert(fixtures.Clean(), IsNil) + fixtures.Clean() } func (s *BaseStorageSuite) TestSetEncodedObjectAndEncodedObject(c *C) { |