diff --git a/pkg/cli/jobflow/jobflow_test.go b/pkg/cli/jobflow/jobflow_test.go index 3a13054de3..f361444e3e 100644 --- a/pkg/cli/jobflow/jobflow_test.go +++ b/pkg/cli/jobflow/jobflow_test.go @@ -104,7 +104,7 @@ func TestGetJobFlow(t *testing.T) { ObjectMeta: metav1.ObjectMeta{ Name: "test-jobflow", Namespace: "default", - CreationTimestamp: metav1.Now(), + CreationTimestamp: metav1.Time{Time: time.Now().UTC().AddDate(0, 0, -3)}, }, Status: flowv1alpha1.JobFlowStatus{ State: flowv1alpha1.State{ @@ -116,7 +116,7 @@ func TestGetJobFlow(t *testing.T) { Name: "test-jobflow", ExpectedErr: nil, ExpectedOutput: `Name Namespace Phase Age -test-jobflow default Succeed 0s`, +test-jobflow default Succeed 3d`, }, } for _, testCase := range testCases {