integration test: drop less responses

This commit is contained in:
Florian Dold 2021-01-11 00:46:28 +01:00
parent 270d84d611
commit a10f9650b2
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -179,11 +179,11 @@ runTest(async (t: GlobalTestState) => {
await wallet.runPending(); await wallet.runPending();
// Drop 10 responses from the exchange. // Drop 3 responses from the exchange.
let faultCount = 0; let faultCount = 0;
faultyExchange.faultProxy.addFault({ faultyExchange.faultProxy.addFault({
modifyResponse(ctx: FaultInjectionResponseContext) { modifyResponse(ctx: FaultInjectionResponseContext) {
if (faultCount < 10) { if (faultCount < 3) {
faultCount++; faultCount++;
ctx.dropResponse = true; ctx.dropResponse = true;
} }