commit 366a90e59214df3b3ce08ed7b02b93e1a5b147a9
parent c5d598d2d839378e20eb6ecf7d842f6ac0b40efb
Author: Florian Dold <florian@dold.me>
Date: Sat, 18 Jul 2026 16:50:19 +0200
fix off-by-one in dev experiment
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/dev-experiments.ts b/packages/taler-wallet-core/src/dev-experiments.ts
@@ -986,7 +986,7 @@ export class DevExperimentHttpLib implements HttpRequestLibrary {
const oldCount = tc.fake500Map.get(reqKey) ?? 0;
logger.info(`count ${oldCount}/${fake500Count} for ${reqKey}`);
tc.fake500Map.set(reqKey, oldCount + 1);
- if (oldCount <= fake500Count) {
+ if (oldCount < fake500Count) {
resp = mockInternalServerError(resp);
}
}