Remove polling delays in run tasks test

These delays are not relevant to the test and result in increased test
execution time.
pull/32782/head
Alisdair McDiarmid 3 years ago
parent 3d51147862
commit 19e635bfc8

@ -79,7 +79,7 @@ func TestCloud_runTaskStageWithPolicyEvaluation(t *testing.T) {
trs := policyEvaluationSummarizer{
cloud: b,
}
c.context.Poll(taskStageBackoffMin, taskStageBackoffMax, func(i int) (bool, error) {
c.context.Poll(0, 0, func(i int) (bool, error) {
cont, _, _ := trs.Summarize(c.context, c.writer, c.taskStage())
if cont {
return true, nil

@ -151,7 +151,7 @@ func TestCloud_runTasksWithTaskResults(t *testing.T) {
trs := taskResultSummarizer{
cloud: b,
}
c.context.Poll(taskStageBackoffMin, taskStageBackoffMax, func(i int) (bool, error) {
c.context.Poll(0, 0, func(i int) (bool, error) {
cont, _, _ := trs.Summarize(c.context, c.writer, c.taskStage())
if cont {
return true, nil

Loading…
Cancel
Save