Merge pull request #11389 from wy65701436/fix-dao-ut

fix artifact dao UT issue
This commit is contained in:
Wenkai Yin(尹文开) 2020-04-04 10:32:03 +08:00 committed by GitHub
commit 9ca87b85a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,8 +379,8 @@ func (d *daoTestSuite) TestUpdate() {
now := time.Now()
err := d.dao.Update(d.ctx, &Artifact{
ID: d.parentArtID,
PushTime: now,
}, "PushTime")
PullTime: now,
}, "PullTime")
d.Require().Nil(err)
artifact, err := d.dao.Get(d.ctx, d.parentArtID)