Merge pull request #16608 from alrs/blob-err

fix: controller/blob: dropped test error
This commit is contained in:
Chenyu Zhang 2022-04-18 17:09:40 +08:00 committed by GitHub
commit 85d12f6557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,7 @@ func (suite *ControllerTestSuite) TestCalculateTotalSizeByProject() {
func (suite *ControllerTestSuite) TestCalculateTotalSize() {
ctx := suite.Context()
size1, err := Ctl.CalculateTotalSize(ctx, true)
suite.Nil(err)
Ctl.Ensure(ctx, suite.DigestString(), schema2.MediaTypeForeignLayer, 100)
Ctl.Ensure(ctx, suite.DigestString(), schema2.MediaTypeLayer, 100)
size2, err := Ctl.CalculateTotalSize(ctx, false)