fix(central-ui,cli): Flow Debugger client waits derive from the method timeout / wait window instead of a fixed 2 minutes (arch-review F4)
Claude-Session: https://claude.ai/code/session_01NcMG6xXdsJbmD2wYAgkK29
This commit is contained in:
@@ -318,6 +318,24 @@ public sealed class FlowDebugServiceTests : IDisposable
|
||||
Assert.Contains("Deployer", envelope.User.Roles);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(180, 205)]
|
||||
[InlineData(1, 30)]
|
||||
public void RunAskTimeoutFor_IsMethodTimeoutPlusRunGracePlusClientSlack_FlooredAtMinRunAskTimeout(int timeoutSeconds, int expectedSeconds)
|
||||
{
|
||||
var timeout = FlowDebugService.RunAskTimeoutFor(timeoutSeconds);
|
||||
|
||||
Assert.Equal(TimeSpan.FromSeconds(expectedSeconds), timeout);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ValueChangeAskTimeoutFor_IsWaitSecondsPlusClientSlack()
|
||||
{
|
||||
var timeout = FlowDebugService.ValueChangeAskTimeoutFor(45);
|
||||
|
||||
Assert.Equal(TimeSpan.FromSeconds(60), timeout);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task RunValueChange_AndReplay_SendTheirCommands()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user