From 6e00b6c70427223865a065c714869e401b845db5 Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Wed, 22 May 2024 16:05:13 -0500 Subject: [PATCH] Reduce timeout from 30 minutes to 10 minutes in serial tests Before, we were waiting for 30 minutes for a scan to timeout. 30 minutes is a long time, and we have some retry logic in the operator to rekick scans after a timeout. Let's reduce the timeout for tests to see if we can improve resilience to flaky scans. --- tests/e2e/serial/main_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/e2e/serial/main_test.go b/tests/e2e/serial/main_test.go index 62ec9992a..d61a1aef9 100644 --- a/tests/e2e/serial/main_test.go +++ b/tests/e2e/serial/main_test.go @@ -369,6 +369,9 @@ func TestMixProductScan(t *testing.T) { Schedule: "0 1 * * *", Suspend: false, }, + ComplianceScanSettings: compv1alpha1.ComplianceScanSettings{ + Timeout: "10m", + }, Roles: []string{"master", "worker"}, } if err := f.Client.Create(context.TODO(), &scanSetting, nil); err != nil { @@ -1626,6 +1629,9 @@ func TestSuspendScanSetting(t *testing.T) { Schedule: "0 1 * * *", Suspend: false, }, + ComplianceScanSettings: compv1alpha1.ComplianceScanSettings{ + Timeout: "10m", + }, Roles: []string{"master", "worker"}, } if err := f.Client.Create(context.TODO(), &scanSetting, nil); err != nil { @@ -1862,6 +1868,9 @@ func TestSuspendScanSettingDoesNotCreateScan(t *testing.T) { Schedule: "0 1 * * *", Suspend: true, }, + ComplianceScanSettings: compv1alpha1.ComplianceScanSettings{ + Timeout: "10m", + }, Roles: []string{"master", "worker"}, } if err := f.Client.Create(context.TODO(), &scanSetting, nil); err != nil {