Skip to content

Commit dcd8f9c

Browse files
committed
allow e2e tests to run longer
1 parent d5db534 commit dcd8f9c

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

maintnotifications/e2e/main_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"log"
55
"os"
66
"testing"
7+
"time"
78

89
"github.com/redis/go-redis/v9"
910
"github.com/redis/go-redis/v9/logging"
@@ -12,6 +13,8 @@ import (
1213
// Global log collector
1314
var logCollector *TestLogCollector
1415

16+
const defaultTestTimeout = 30 * time.Minute
17+
1518
// Global fault injector client
1619
var faultInjector *FaultInjectorClient
1720

maintnotifications/e2e/scenario_endpoint_types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func TestEndpointTypesPushNotifications(t *testing.T) {
2121
t.Skip("Scenario tests require E2E_SCENARIO_TESTS=true")
2222
}
2323

24-
ctx, cancel := context.WithTimeout(context.Background(), 25*time.Minute)
24+
ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)
2525
defer cancel()
2626

2727
var dump = true

maintnotifications/e2e/scenario_push_notifications_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func TestPushNotifications(t *testing.T) {
1919
t.Skip("Scenario tests require E2E_SCENARIO_TESTS=true")
2020
}
2121

22-
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Minute)
22+
ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)
2323
defer cancel()
2424

2525
// Setup: Create fresh database and client factory for this test
@@ -395,8 +395,9 @@ func TestPushNotifications(t *testing.T) {
395395

396396
p("Executing commands and collecting logs for analysis... This will take 30 seconds...")
397397
go commandsRunner.FireCommandsUntilStop(ctx)
398-
time.Sleep(30 * time.Second)
398+
time.Sleep(time.Minute)
399399
commandsRunner.Stop()
400+
time.Sleep(time.Minute)
400401
allLogsAnalysis := logCollector.GetAnalysis()
401402
trackerAnalysis := tracker.GetAnalysis()
402403

maintnotifications/e2e/scenario_stress_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func TestStressPushNotifications(t *testing.T) {
1919
t.Skip("[STRESS][SKIP] Scenario tests require E2E_SCENARIO_TESTS=true")
2020
}
2121

22-
ctx, cancel := context.WithTimeout(context.Background(), 35*time.Minute)
22+
ctx, cancel := context.WithTimeout(context.Background(), 40*time.Minute)
2323
defer cancel()
2424

2525
// Setup: Create fresh database and client factory for this test

maintnotifications/e2e/scenario_tls_configs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func ТestTLSConfigurationsPushNotifications(t *testing.T) {
2020
t.Skip("Scenario tests require E2E_SCENARIO_TESTS=true")
2121
}
2222

23-
ctx, cancel := context.WithTimeout(context.Background(), 25*time.Minute)
23+
ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)
2424
defer cancel()
2525

2626
var dump = true

0 commit comments

Comments
 (0)