@@ -813,12 +813,12 @@ spec:
813813 })).
814814 Then ().
815815 ExpectWorkflow (func (t * testing.T , metadata * v1.ObjectMeta , status * v1alpha1.WorkflowStatus ) {
816- assert .Equal (t , status . Phase , v1alpha1 . WorkflowFailed )
816+ assert .Equal (t , v1alpha1 . WorkflowFailed , status . Phase )
817817 }).
818818 ExpectWorkflowNode (func (status v1alpha1.NodeStatus ) bool {
819819 return status .DisplayName == onExitNodeName
820820 }, func (t * testing.T , status * v1alpha1.NodeStatus , pod * apiv1.Pod ) {
821- assert .Equal ( t , true , status .NodeFlag .Hooked )
821+ assert .True ( t , status .NodeFlag .Hooked )
822822 assert .Equal (t , v1alpha1 .NodeSucceeded , status .Phase )
823823 }))
824824}
@@ -862,12 +862,12 @@ spec:
862862 })).
863863 Then ().
864864 ExpectWorkflow (func (t * testing.T , metadata * v1.ObjectMeta , status * v1alpha1.WorkflowStatus ) {
865- assert .Equal (t , status . Phase , v1alpha1 . WorkflowFailed )
865+ assert .Equal (t , v1alpha1 . WorkflowFailed , status . Phase )
866866 }).
867867 ExpectWorkflowNode (func (status v1alpha1.NodeStatus ) bool {
868868 return status .DisplayName == onExitNodeName
869869 }, func (t * testing.T , status * v1alpha1.NodeStatus , pod * apiv1.Pod ) {
870- assert .Equal ( t , true , status .NodeFlag .Hooked )
870+ assert .True ( t , status .NodeFlag .Hooked )
871871 assert .Equal (t , v1alpha1 .NodeSucceeded , status .Phase )
872872 }))
873873}
0 commit comments