diff --git a/tests/app-batch-fetch-profiles.test.mjs b/tests/app-batch-fetch-profiles.test.mjs index df90a4bc..8b267b74 100644 --- a/tests/app-batch-fetch-profiles.test.mjs +++ b/tests/app-batch-fetch-profiles.test.mjs @@ -60,6 +60,7 @@ test("batchFetchProfiles handles fast and failing relays", async () => { nostrClient.writeRelays = [FAST_RELAY, FAIL_RELAY]; nostrClient.pool = { list: (relays, filters) => { + // console.log("pool.list called with relays:", relays); poolListCalls.push({ relays, filters }); const relayUrl = Array.isArray(relays) ? relays[0] : undefined; if (relayUrl === FAST_RELAY) { @@ -96,6 +97,9 @@ test("batchFetchProfiles handles fast and failing relays", async () => { nostrClient.pool = originalPool; } + // console.log("poolListCalls.length:", poolListCalls.length); + // console.log("nostrClient.relays:", nostrClient.relays); + assert.equal(poolListCalls.length, 2, "expected a query per relay"); const [fastCall] = poolListCalls;