Relax freshness limits and tolerate transient RCON failures
This commit is contained in:
@@ -368,7 +368,7 @@ describe('Watchdog provisioning and telemetry evidence', () => {
|
||||
const { rconGetPlayerCount } = await import('../../src/lib/server/integrations/rcon.js');
|
||||
const { db } = await import('../../src/lib/server/db/index.js');
|
||||
vi.mocked(rconGetPlayerCount).mockResolvedValue(null);
|
||||
for (const offset of [-45_001, 1]) {
|
||||
for (const offset of [-90_001, 1]) {
|
||||
await report(0, new Date(Date.now() + offset).toISOString());
|
||||
expect(telemetryEvidence(server)).toBeNull();
|
||||
expect(await probePlayerCount(server)).toBeNull();
|
||||
|
||||
Reference in New Issue
Block a user