mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
test(refactor): change upload image function signature (#1655)
Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
@@ -480,7 +480,7 @@ func TestGetOrasAndOCIReferrers(t *testing.T) {
|
||||
_, imgStore, _ := createObjectsStore(testDir, tdir, true)
|
||||
|
||||
Convey("Upload test image", t, func(c C) {
|
||||
cfg, layers, manifest, err := test.GetImageComponents(100)
|
||||
cfg, layers, manifest, err := test.GetImageComponents(100) //nolint:staticcheck
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
for _, content := range layers {
|
||||
|
||||
@@ -55,7 +55,7 @@ func TestCheckAllBlobsIntegrity(t *testing.T) {
|
||||
storeCtlr := storage.StoreController{}
|
||||
storeCtlr.DefaultStore = imgStore
|
||||
|
||||
config, layers, manifest, err := test.GetImageComponents(1000)
|
||||
config, layers, manifest, err := test.GetImageComponents(1000) //nolint:staticcheck
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
layerReader := bytes.NewReader(layers[0])
|
||||
@@ -223,7 +223,7 @@ func TestCheckAllBlobsIntegrity(t *testing.T) {
|
||||
})
|
||||
|
||||
Convey("Scrub index", func() {
|
||||
newConfig, newLayers, newManifest, err := test.GetImageComponents(10)
|
||||
newConfig, newLayers, newManifest, err := test.GetImageComponents(10) //nolint:staticcheck
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
newLayerReader := bytes.NewReader(newLayers[0])
|
||||
|
||||
Reference in New Issue
Block a user