Increase timeouts to avoid intermittent test failures
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"testing"
+ "time"
framework "github.com/operator-framework/operator-sdk/pkg/test"
"github.com/operator-framework/operator-sdk/pkg/test/e2eutil"
@@ -42,12 +43,12 @@ func sparkTest(t *testing.T, f *framework.Framework, testCtx *framework.TestCtx,
}
defer undeployJaegerInstance(j)
- err = WaitForCronJob(t, f.KubeClient, namespace, fmt.Sprintf("%s-spark-dependencies", name), retryInterval, timeout)
+ err = WaitForCronJob(t, f.KubeClient, namespace, fmt.Sprintf("%s-spark-dependencies", name), retryInterval, timeout+timeout+1*time.Minute)
if err != nil {
return errors.WithMessage(err, "Failed waiting for cron job")
}
- err = WaitForJobOfAnOwner(t, f.KubeClient, namespace, fmt.Sprintf("%s-spark-dependencies", name), retryInterval, timeout)
+ err = WaitForJobOfAnOwner(t, f.KubeClient, namespace, fmt.Sprintf("%s-spark-dependencies", name), retryInterval, timeout+timeout+1*time.Minute)
if err != nil {
return errors.WithMessage(err, "Failed waiting for Job Of An Owner")
}
