Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
updating UNKNOWN string to NA string
Browse files Browse the repository at this point in the history
  • Loading branch information
OhCloud committed Mar 23, 2022
1 parent 7a722f3 commit 0a4257e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/internal/pkg/cli/workflow/workflow_tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (m *Manager) getTasks() ([]Task, error) {
return nil, fmt.Errorf("unable to parse job ID from task name '%s'", taskName)
}

exitCode := "UNKNOWN"
exitCode := "NA"
if taskLog.ExitCode != nil {
exitCode = strconv.FormatInt(int64(*taskLog.ExitCode), 10)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func (s *GetWorkflowTasksTestSuite) TestGetWorkflowTasks_WithExitCodeUnknown() {
s.Assert().Equal(testTaskJobId, tasks[0].JobId)
s.Assert().True(tasks[0].StartTime.Equal(testStartTime.Truncate(time.Second)))
s.Assert().True(tasks[0].StopTime.Equal(testStopTime.Truncate(time.Second)))
s.Assert().Empty(nil, "UNKNOWN")
s.Assert().Empty(nil, "NA")
}
}

Expand Down

0 comments on commit 0a4257e

Please sign in to comment.