플레이 감사 국가 생멸과 장기 tick 저장을 보완하고 중간 전달 준비
This commit is contained in:
@@ -193,7 +193,7 @@ integration('initial audit durability before runtime readiness', () => {
|
||||
policies.every(
|
||||
(policy) =>
|
||||
policy.source === 'BASELINE' &&
|
||||
policy.tick === Number(beforeClock.clockTick) &&
|
||||
policy.tick === beforeClock.clockTick &&
|
||||
policy.inputSequence === null
|
||||
)
|
||||
).toBe(true);
|
||||
@@ -256,7 +256,7 @@ integration('initial audit durability before runtime readiness', () => {
|
||||
expect(recovered.clockRevision).toBeGreaterThan(original.clockRevision);
|
||||
const policies = await db.playAuditPolicy.findMany({ where: { serverId, nationId: 91992 } });
|
||||
expect(policies).toHaveLength(4);
|
||||
expect(policies.every((policy) => policy.tick === runtime!.world.getGameClockState().tick)).toBe(true);
|
||||
expect(policies.every((policy) => policy.tick === BigInt(runtime!.world.getGameClockState().tick))).toBe(true);
|
||||
expect(await db.playAuditMonth.findMany({ where: { serverId, kind: 'INITIAL' } })).toEqual([initial]);
|
||||
}, 30_000);
|
||||
it('adopts an empty document collection without duplicating an existing initial sample', async () => {
|
||||
|
||||
Reference in New Issue
Block a user