Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
simster7 committed Apr 20, 2020
1 parent dacfa20 commit ca77a5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions workflow/controller/dag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,7 @@ status:

// Tests whether assessPhase marks a DAG as successful when it contains failed tasks with continueOn failed
func TestDagAssessPhaseContinueOnExpandedTaskVariables(t *testing.T) {
cancel, controller := newController()
defer cancel()
controller := newController()
wfcset := controller.wfclientset.ArgoprojV1alpha1().Workflows("")

wf := unmarshalWF(dagAssessPhaseContinueOnExpandedTaskVariables)
Expand Down Expand Up @@ -593,8 +592,7 @@ status:

// Tests whether assessPhase marks a DAG as successful when it contains failed tasks with continueOn failed
func TestDagAssessPhaseContinueOnExpandedTask(t *testing.T) {
cancel, controller := newController()
defer cancel()
controller := newController()
wfcset := controller.wfclientset.ArgoprojV1alpha1().Workflows("")

wf := unmarshalWF(dagAssessPhaseContinueOnExpandedTask)
Expand Down
4 changes: 2 additions & 2 deletions workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,11 +792,11 @@ func (woc *wfOperationCtx) podReconciliation() error {
// If the node is pending and the pod does not exist, it could be the case that we want to try to submit it
// again instead of marking it as an error. Check if that's the case.
if node.Pending() {
tmplCtx, err := woc.createTemplateContext(node.GetTemplateScope())
tmplCtx, err := woc.createTemplateContext(node.TemplateScope)
if err != nil {
return err
}
_, tmpl, _, err := tmplCtx.ResolveTemplate(&node)
_, tmpl, err := tmplCtx.ResolveTemplate(&node)
if err != nil {
return err
}
Expand Down

0 comments on commit ca77a5e

Please sign in to comment.