@@ -292,7 +292,7 @@ class GatewayExecApprovalRuntimeTest {
292292 }
293293
294294 runtime.resolveExecApproval(" approval-1" , " deny" )
295- withTimeout(2_000 ) { resolveStarted.await() }
295+ withTimeout(10_000 ) { resolveStarted.await() }
296296
297297 // GatewaySession runs onDisconnected before failing the retired socket's
298298 // request waiters. Recreate that production ordering on the same stable ID.
@@ -346,7 +346,7 @@ class GatewayExecApprovalRuntimeTest {
346346 }
347347
348348 runtime.resolveExecApproval(" approval-1" , " deny" )
349- withTimeout(2_000 ) { resolveStarted.await() }
349+ withTimeout(10_000 ) { resolveStarted.await() }
350350 runtime.refreshExecApprovals()
351351 withTimeout(2_000 ) { refreshReadCompleted.await() }
352352 waitUntil { ! runtime.execApprovalsRefreshing.value }
@@ -418,7 +418,7 @@ class GatewayExecApprovalRuntimeTest {
418418 }
419419
420420 runtime.resolveExecApproval(" approval-1" , " deny" )
421- withTimeout(2_000 ) { resolveStarted.await() }
421+ withTimeout(10_000 ) { resolveStarted.await() }
422422 runtime.refreshExecApprovals()
423423 withTimeout(2_000 ) { retainedReadStarted.await() }
424424
@@ -604,7 +604,7 @@ class GatewayExecApprovalRuntimeTest {
604604 }
605605
606606 runtime.resolveExecApproval(" approval-1" , " allow-once" )
607- withTimeout(2_000 ) { resolveStarted.await() }
607+ withTimeout(10_000 ) { resolveStarted.await() }
608608 invokeApprovalEvent(
609609 runtime,
610610 " exec.approval.resolved" ,
@@ -653,7 +653,7 @@ class GatewayExecApprovalRuntimeTest {
653653 }
654654
655655 runtime.resolveExecApproval(" approval-1" , " allow-once" )
656- withTimeout(2_000 ) { resolveStarted.await() }
656+ withTimeout(10_000 ) { resolveStarted.await() }
657657 invokeApprovalEvent(
658658 runtime,
659659 " exec.approval.resolved" ,
@@ -756,7 +756,7 @@ class GatewayExecApprovalRuntimeTest {
756756 }
757757
758758 runtime.resolveExecApproval(" approval-1" , " allow-once" )
759- withTimeout(2_000 ) { resolveStarted.await() }
759+ withTimeout(10_000 ) { resolveStarted.await() }
760760 // Replacement hello on the same stable endpoint: the epoch bump makes the
761761 // already-resolved publish a no-op, leaving only the pending-write record.
762762 invokeReplaceGatewayMethods(runtime, legacyMethods)
@@ -1178,7 +1178,8 @@ class GatewayExecApprovalRuntimeTest {
11781178 )
11791179
11801180 private suspend fun waitUntil (condition : () -> Boolean ) {
1181- withTimeout(3_000 ) {
1181+ // Generous ceiling for loaded CI runners; passing tests exit on first poll.
1182+ withTimeout(10_000 ) {
11821183 while (! condition()) delay(10 )
11831184 }
11841185 }
0 commit comments