Test rate-limiting, stories in mock server

This commit is contained in:
Fedor Indutny 2022-09-19 15:08:55 -07:00 committed by GitHub
parent 450051e541
commit f9453c64dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 212 additions and 10 deletions

View file

@ -6,6 +6,7 @@ import { ipcRenderer } from 'electron';
import { explodePromise } from './util/explodePromise';
import { SECOND } from './util/durations';
import * as log from './logging/log';
import type { IPCResponse as ChallengeResponseType } from './challenge';
type ResolveType = (data: unknown) => void;
@ -84,4 +85,8 @@ export class CI {
}
resultList.push(data);
}
public solveChallenge(response: ChallengeResponseType): void {
window.Signal.challengeHandler?.onResponse(response);
}
}