,,
This commit is contained in:
parent
0c75d3b4c2
commit
3dab48f58b
1 changed files with 1141 additions and 1376 deletions
|
|
@ -124,7 +124,7 @@ export async function assertCanonical(
|
|||
do {
|
||||
const batch = await getJson<{
|
||||
headEventId: number;
|
||||
endEventId?: number;
|
||||
endEventId: number;
|
||||
events: { eventId: number; requestId: string }[];
|
||||
}>(`${vaultUrl}/events-since?after=${after}`, token);
|
||||
assert.equal(
|
||||
|
|
@ -132,7 +132,7 @@ export async function assertCanonical(
|
|||
snapshot.headEventId,
|
||||
"Server changed while checking convergence"
|
||||
);
|
||||
const end = batch.endEventId ?? batch.headEventId;
|
||||
const end = batch.endEventId;
|
||||
assert.equal(
|
||||
end,
|
||||
batch.events.at(-1)?.eventId ?? after,
|
||||
|
|
|
|||
Loading…
Reference in a new issue