diff options
Diffstat (limited to 'tools/profile-batch-test.js')
| -rw-r--r-- | tools/profile-batch-test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/profile-batch-test.js b/tools/profile-batch-test.js index 4a993a5..0b78f61 100644 --- a/tools/profile-batch-test.js +++ b/tools/profile-batch-test.js @@ -7,7 +7,7 @@ // relays and real pubkeys from that feed. // // Run: bun tools/profile-batch-test.js -import puppeteer from 'puppeteer-core'; +import puppeteer from './puppeteer.js'; import { generateMnemonic } from '@scure/bip39'; import { wordlist } from '@scure/bip39/wordlists/english'; import { cacheKeyFor } from '../src/wallet.js'; @@ -31,7 +31,7 @@ if (notes.length < 10) { console.log(' ✗ relays too quiet to test with'); proc const html = await buildHtml({ minify: true, pwa: false }); const server = Bun.serve({ port: 5273, fetch: () => new Response(html, { headers: { 'content-type': 'text/html' } }) }); -const browser = await puppeteer.launch({ executablePath: '/usr/bin/google-chrome', headless: 'new', args: ['--no-sandbox'] }); +const browser = await puppeteer.launch({ relays: 'read', executablePath: '/usr/bin/google-chrome', headless: 'new', args: ['--no-sandbox'] }); const page = await browser.newPage(); page.on('console', (m) => { const t = m.text(); if (/profiles asked/.test(t)) console.log(' [page]', t); }); // count the kind-0 requests the app sends, and how many pubkeys each carries |
