desk: the replay test pins the code and the fork id too

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Heimdall 2026-11-11 01:54:03 +00:00
commit 764d00af84

View file

@ -102,6 +102,8 @@ public sealed class DeskAnswerTests
Assert.Equal(422, first.Status);
Assert.Equal(first.Status, replay.Status);
Assert.Equal(first.Body, replay.Body);
Assert.Equal("fork_too_large", (string?)JsonNode.Parse(replay.Body)!["code"]);
Assert.Contains(DeskReplay.ChatFork, (string)JsonNode.Parse(replay.Body)!["error"]!);
Assert.Equal(2, factory.Door.Calls.Count(c => c.Kind == "answer"));
Assert.Equal(2, factory.Door.Calls.Count(c => c.Kind == "read"));
}