From 7104461716724a81bd7b64b32e3076a8d072b57b Mon Sep 17 00:00:00 2001 From: wang yan Date: Thu, 2 Apr 2020 10:23:30 +0800 Subject: [PATCH] fix artifact dao UT issue The update column should be PullTime instead of PushTime Signed-off-by: wang yan --- src/pkg/artifact/dao/dao_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/artifact/dao/dao_test.go b/src/pkg/artifact/dao/dao_test.go index 50e7aba67..a40b17c30 100644 --- a/src/pkg/artifact/dao/dao_test.go +++ b/src/pkg/artifact/dao/dao_test.go @@ -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)