fix: use replay fallback for direct demo hashes
This commit is contained in:
@@ -18,12 +18,25 @@ describe("presentationTargetHealth", () => {
|
||||
target: "http://127.0.0.1:8765/rpc",
|
||||
probe: "ready",
|
||||
liveActive: false,
|
||||
replayActive: false,
|
||||
})).toMatchObject({
|
||||
kind: "ready",
|
||||
label: "Live target ready",
|
||||
});
|
||||
});
|
||||
|
||||
it("labels a reviewed replay selected alongside a healthy target", () => {
|
||||
expect(presentationTargetHealth({
|
||||
target: "http://127.0.0.1:8765/rpc",
|
||||
probe: "ready",
|
||||
liveActive: false,
|
||||
replayActive: true,
|
||||
})).toMatchObject({
|
||||
kind: "replay",
|
||||
label: "Replay evidence",
|
||||
});
|
||||
});
|
||||
|
||||
it("marks live active only after live timeline starts", () => {
|
||||
expect(presentationTargetHealth({
|
||||
target: "http://127.0.0.1:8765/rpc",
|
||||
@@ -46,4 +59,4 @@ describe("presentationTargetHealth", () => {
|
||||
label: "Replay fallback",
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user