From 65104d60ad41dea1a9c128244cae15e602136d49 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Wed, 5 Aug 2020 08:54:54 -0700 Subject: [PATCH] Commented out failing integration tests --- test/integration/electrumx.js | 7 +++++-- test/integration/testnet/electrumx.js | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/test/integration/electrumx.js b/test/integration/electrumx.js index 569ec05..59734b3 100644 --- a/test/integration/electrumx.js +++ b/test/integration/electrumx.js @@ -180,6 +180,8 @@ describe(`#ElectrumX`, () => { }) describe(`#unconfirmed`, () => { + // These tests won't work because unconfirmed transactions are transient in nature. + /* it(`should GET unconfirmed UTXOs (mempool) for a single address`, async () => { const addr = "bitcoincash:qqy6qwk3wpne95hhv8uzwr4cn8m7c06cqgchl77dnv" @@ -220,6 +222,7 @@ describe(`#ElectrumX`, () => { assert.property(result.utxos[0].utxos[0], "tx_hash") assert.property(result.utxos[0].utxos[0], "fee") }) + */ it(`should throw error on array size rate limit`, async () => { try { @@ -227,9 +230,9 @@ describe(`#ElectrumX`, () => { for (let i = 0; i < 25; i++) addr.push("bitcoincash:qrdka2205f4hyukutc2g0s6lykperc8nsu5u2ddpqf") - const result = await bchjs.Electrumx.unconfirmed(addr) + await bchjs.Electrumx.unconfirmed(addr) - console.log(`result: ${util.inspect(result)}`) + // console.log(`result: ${util.inspect(result)}`) assert.equal(true, false, "Unexpected result!") } catch (err) { assert.hasAnyKeys(err, ["error"]) diff --git a/test/integration/testnet/electrumx.js b/test/integration/testnet/electrumx.js index 2f4915e..5587f1e 100644 --- a/test/integration/testnet/electrumx.js +++ b/test/integration/testnet/electrumx.js @@ -184,6 +184,8 @@ describe(`#ElectrumX`, () => { }) describe(`#unconfirmed`, () => { + // These tests won't work because unconfirmed transactions are transient in nature. + /* it(`should GET unconfirmed UTXOs (mempool) for a single address`, async () => { const addr = "bchtest:qp25k20dgcljrz4hkdz43partam3j5httyprjp23qd" @@ -224,6 +226,7 @@ describe(`#ElectrumX`, () => { assert.property(result.utxos[0].utxos[0], "tx_hash") assert.property(result.utxos[0].utxos[0], "fee") }) + */ it(`should throw error on array size rate limit`, async () => { try { @@ -231,7 +234,7 @@ describe(`#ElectrumX`, () => { for (let i = 0; i < 25; i++) addr.push("bchtest:qrvn2n228aa39xupcw9jw0d3fj8axxky656e4j62z2") - const result = await bchjs.Electrumx.unconfirmed(addr) + await bchjs.Electrumx.unconfirmed(addr) //console.log(`result: ${util.inspect(result)}`) assert.equal(true, false, "Unexpected result!")