Skip to content

Commit

Permalink
Merge pull request #3905 from Monokaix/fix-ut
Browse files Browse the repository at this point in the history
Fix flaky ut of jobFlow cli
  • Loading branch information
volcano-sh-bot authored Dec 21, 2024
2 parents b0c1a56 + cfb9972 commit 0966fd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cli/jobflow/jobflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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 {
Expand Down

0 comments on commit 0966fd5

Please sign in to comment.