Loosen test tolerance a little

This commit is contained in:
Michael Lumish 2025-08-18 12:56:11 -07:00
parent f0d3f81fec
commit e975b856b9
1 changed files with 2 additions and 2 deletions

View File

@ -278,7 +278,7 @@ describe('Weighted round robin LB policy', () => {
await makeNCalls(client, 10);
await asyncTimeout(200);
const result = await makeNCalls(client, 40);
assert(Math.abs(result['1'] - 30) < 2, `server1: ${result['1']}, server2: ${result['2']}`);
assert(Math.abs(result['1'] - 30) < 3, `server1: ${result['1']}, server2: ${result['2']}`);
});
// Calls aren't fast enough for this to work consistently
it.skip('Should wait for the blackout period to apply weights', async () => {
@ -430,7 +430,7 @@ describe('Weighted round robin LB policy', () => {
await makeNCalls(client, 10);
await asyncTimeout(200);
const result = await makeNCalls(client, 40);
assert(Math.abs(result['1'] - 30) < 2, `server1: ${result['1']}, server2: ${result['2']}`);
assert(Math.abs(result['1'] - 30) < 3, `server1: ${result['1']}, server2: ${result['2']}`);
});
});
});