mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Merge remote-tracking branch 'origin/main' into kennylopez-agent-catalog-sharing
This commit is contained in:
@@ -250,6 +250,8 @@ type E2eConfig = {
|
||||
openerError?: string;
|
||||
/** Delay binding signatures so specs can exercise request supersession. */
|
||||
nostrBindSignDelayMs?: number;
|
||||
/** Reject successive mock WebSocket connect attempts, then resume. */
|
||||
websocketConnectErrors?: string[];
|
||||
stallWebsocketSends?: boolean;
|
||||
userSearchDelayMs?: number;
|
||||
// NIP-IA gate inputs — see tests/helpers/bridge.ts:MockBridgeOptions for
|
||||
@@ -8496,6 +8498,11 @@ async function connectRealSocket(args: { url?: string; onMessage: unknown }) {
|
||||
}
|
||||
|
||||
async function connectMockSocket(args: { onMessage: unknown }) {
|
||||
const connectError = getConfig()?.mock?.websocketConnectErrors?.shift();
|
||||
if (connectError) {
|
||||
throw new Error(connectError);
|
||||
}
|
||||
|
||||
if (mockWebsocketSendMutexWedged) {
|
||||
return new Promise<number>(() => {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user