diff options
Diffstat (limited to 'tools/poll-test.js')
| -rw-r--r-- | tools/poll-test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/poll-test.js b/tools/poll-test.js index e9cb0d6..b88a4db 100644 --- a/tools/poll-test.js +++ b/tools/poll-test.js @@ -15,7 +15,7 @@ const check = (n, c, d = '') => { console.log(` ${c ? '✓' : '✗'} ${n}${d ? ' const POLL_ID = '000002f7c6a38223a9843d6e93ce8c15a3048bc95003690d74341cf9de372bfc'; const pool = new SimplePool(); -const [poll] = await pool.querySync(['wss://relay.coinos.io', 'wss://relay.damus.io', 'wss://nos.lol', 'wss://relay.primal.net'], { ids: [POLL_ID] }, { maxWait: 6000 }); +const [poll] = await pool.querySync(['wss://relay.coinos.io', 'wss://relay.damus.io', 'wss://nos.lol', 'wss://relay.primal.net', 'wss://relay.ditto.pub', 'wss://relay.nostrplebs.com'], { ids: [POLL_ID] }, { maxWait: 6000 }); if (!poll) { console.log(' ✗ the poll is not on the relays'); process.exit(1); } const labels = poll.tags.filter((x) => x[0] === 'option').map((x) => x[2]); |
