mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
Merge pull request #11389 from wy65701436/fix-dao-ut
fix artifact dao UT issue
This commit is contained in:
commit
9ca87b85a5
@ -379,8 +379,8 @@ func (d *daoTestSuite) TestUpdate() {
|
|||||||
now := time.Now()
|
now := time.Now()
|
||||||
err := d.dao.Update(d.ctx, &Artifact{
|
err := d.dao.Update(d.ctx, &Artifact{
|
||||||
ID: d.parentArtID,
|
ID: d.parentArtID,
|
||||||
PushTime: now,
|
PullTime: now,
|
||||||
}, "PushTime")
|
}, "PullTime")
|
||||||
d.Require().Nil(err)
|
d.Require().Nil(err)
|
||||||
|
|
||||||
artifact, err := d.dao.Get(d.ctx, d.parentArtID)
|
artifact, err := d.dao.Get(d.ctx, d.parentArtID)
|
||||||
|
Loading…
Reference in New Issue
Block a user