From 455af0bbe446ac95a247ab128f0a5bd27e4a9522 Mon Sep 17 00:00:00 2001 From: PJ Doerner Date: Wed, 27 Nov 2024 16:28:44 -0800 Subject: [PATCH] Increase test timeout --- components/nexusoperations/executors_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/nexusoperations/executors_test.go b/components/nexusoperations/executors_test.go index 3cc00a6ede9..1f3cea10f53 100644 --- a/components/nexusoperations/executors_test.go +++ b/components/nexusoperations/executors_test.go @@ -334,7 +334,7 @@ func TestProcessInvocationTask(t *testing.T) { { name: "invocation timeout by ScheduleToCloseTimeout", requestTimeout: time.Hour, - schedToCloseTimeout: 2 * time.Millisecond, + schedToCloseTimeout: 10 * time.Millisecond, destinationDown: true, expectedMetricOutcome: "request-timeout", onStartOperation: func(ctx context.Context, service, operation string, input *nexus.LazyValue, options nexus.StartOperationOptions) (nexus.HandlerStartOperationResult[any], error) { @@ -655,7 +655,7 @@ func TestProcessCancelationTask(t *testing.T) { }, { name: "invocation timeout", - requestTimeout: 2 * time.Millisecond, + requestTimeout: 10 * time.Millisecond, destinationDown: true, onCancelOperation: func(ctx context.Context, service, operation, operationID string, options nexus.CancelOperationOptions) error { time.Sleep(time.Millisecond * 100) //nolint:forbidigo // Allow time.Sleep for timeout tests