Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Dittamo <[email protected]>
  • Loading branch information
pvditt committed Dec 14, 2023
1 parent 08056f3 commit cc4c99b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flyteplugins/go/tasks/plugins/array/k8s/management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,11 @@ func TestTerminateSubTasks(t *testing.T) {
assert.Nil(t, err)
assert.Equal(t, uint32(1), nextState.PhaseVersion)
assert.Equal(t, arrayCore.PhaseWriteToDiscoveryThenFail, nextState.CurrentPhase)
assert.Len(t, externalResources, subtaskCount)
assert.Len(t, externalResources, terminateCounter)

for _, externalResource := range externalResources {
assert.True(t, externalResource.IsAbortedSubtask || core.Phases[externalResource.Phase].IsTerminal() || core.Phases[externalResource.Phase] == core.PhaseUndefined)
phase := core.Phases[externalResource.Phase]
assert.True(t, phase.IsAborted())
}
})
}
Expand Down

0 comments on commit cc4c99b

Please sign in to comment.