Skip to content

Commit f2e80f9

Browse files
committed
tests: fix proxy controller test
Signed-off-by: AYDEV-FR <[email protected]>
1 parent b1dea11 commit f2e80f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/controller/proxy/controller_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ func (p *proxyControllerTestSuite) TestUseLocalManifest_429ToLocal() {
147147
p.Assert().True(result)
148148
}
149149

150-
func (p *proxyControllerTestSuite) TestUseLocalManifestWithTag_False() {
150+
func (p *proxyControllerTestSuite) TestUseLocalManifestWithTag_True() {
151151
ctx := context.Background()
152152
art := lib.ArtifactInfo{Repository: "library/hello-world", Tag: "latest"}
153153
desc := &distribution.Descriptor{}
154154
p.local.On("GetManifest", mock.Anything, mock.Anything).Return(&artifact.Artifact{}, nil)
155155
p.remote.On("ManifestExist", mock.Anything, mock.Anything).Return(false, desc, nil)
156156
result, _, err := p.ctr.UseLocalManifest(ctx, art, p.remote)
157-
p.Assert().True(errors.IsNotFoundErr(err))
158-
p.Assert().False(result)
157+
p.Assert().Nil(err)
158+
p.Assert().True(result)
159159
}
160160

161161
func (p *proxyControllerTestSuite) TestUseLocalBlob_True() {

0 commit comments

Comments
 (0)