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:
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);
|
||||
|
||||
Reference in new issue
Block a user