diff options
Diffstat (limited to 'tools/chat-watchdog-test.js')
| -rw-r--r-- | tools/chat-watchdog-test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/chat-watchdog-test.js b/tools/chat-watchdog-test.js index 16a9ae0..d3f17c8 100644 --- a/tools/chat-watchdog-test.js +++ b/tools/chat-watchdog-test.js @@ -10,7 +10,7 @@ // sockets are reached through a registry shimmed onto window.WebSocket. // // Run: bun tools/chat-watchdog-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 { buildHtml } from '../build.js'; @@ -21,7 +21,7 @@ const check = (n, c, d = '') => { console.log(` ${c ? '✓' : '✗'} ${n}${d ? ' const html = await buildHtml({ minify: true, pwa: false }); const server = Bun.serve({ port: 5232, 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(); // every socket the page opens, so the test can kill them the way the OS does await page.evaluateOnNewDocument(() => { |
