test(render-node): heartbeat assertion starts after the last claim

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-03 09:49:35 +00:00
1 parent 5e2acc9f60
commit 1585b88e63
1 file changed
+2
@@ -108,6 +108,8 @@ public sealed class RenderNodeClientTests(TestContext context)
node.Start();
await JobApiTests.WaitForAsync(editor, job.Id, "done");
await JobApiTests.WaitForAsync(editor, gif.Id, "done");
// Past the claim that found the queue empty, only heartbeats move the node's last sign of life.
await Task.Delay(300);
var beat = (await server.Database.RenderNodes.ListAsync()).Single().LastHeartbeat;
await Task.Delay(400);
Assert.Greater((await server.Database.RenderNodes.ListAsync()).Single().LastHeartbeat.Ticks, beat.Ticks);