integration test: drop less responses
This commit is contained in:
parent
270d84d611
commit
a10f9650b2
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user