Skip to content

Commit

Permalink
Revert "Adding test to cover Result field inclusion" due to unexpecte…
Browse files Browse the repository at this point in the history
…d integration error

This reverts commit cc5cf32.
  • Loading branch information
Cristhian Peña committed Dec 21, 2023
1 parent cc5cf32 commit 7b3fc7c
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions command/v7/tasks_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,31 +199,6 @@ var _ = Describe("tasks Command", func() {
})
})

When("the tasks command field Result is set", func() {
BeforeEach(func() {
fakeActor.GetApplicationTasksReturns(
[]resources.Task{
{
GUID: "task-1-guid",
SequenceID: 1,
Name: "task-1",
State: constant.TaskFailed,
CreatedAt: "2016-11-08T22:26:02Z",
Command: "",
Result: &resources.TaskResult{FailureReason: "Failed test"},
},
},
v7action.Warnings{"get-tasks-warning-1"},
nil)
})

It("outputs Result for the tasks commands", func() {
Expect(executeErr).ToNot(HaveOccurred())

Expect(testUI.Out).To(Say(`1\s+task-1\s+FAILED\s+Tue, 08 Nov 2016 22:26:02 UTC\s+\[hidden\]\s+Failed test`))
})
})

When("there are no tasks associated with the application", func() {
BeforeEach(func() {
fakeActor.GetApplicationTasksReturns([]resources.Task{}, nil, nil)
Expand Down

0 comments on commit 7b3fc7c

Please sign in to comment.