From bea8609a58023a9b1a48cc265ca013503bc129e5 Mon Sep 17 00:00:00 2001 From: Guangming Wang Date: Fri, 11 Oct 2019 22:59:40 +0800 Subject: [PATCH] fix wrong time parse by wrong year representation Signed-off-by: Guangming Wang --- src/replication/dao/execution_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/replication/dao/execution_test.go b/src/replication/dao/execution_test.go index 95940dcd1..b112c4d54 100644 --- a/src/replication/dao/execution_test.go +++ b/src/replication/dao/execution_test.go @@ -185,8 +185,8 @@ func TestExecutionFill(t *testing.T) { StartTime: time.Now(), } executionID, _ := AddExecution(execution) - et1, _ := time.Parse("2016-01-02 15:04:05", "2019-03-21 08:01:01") - et2, _ := time.Parse("2016-01-02 15:04:05", "2019-04-01 10:11:53") + et1, _ := time.Parse("2006-01-02 15:04:05", "2019-03-21 08:01:01") + et2, _ := time.Parse("2006-01-02 15:04:05", "2019-04-01 10:11:53") task1 := &models.Task{ ID: 20191, ExecutionID: executionID,