Commented out failing integration tests

This commit is contained in:
Chris Troutner
2020-08-05 08:54:54 -07:00
parent fd0a1a6af2
commit 65104d60ad
2 changed files with 9 additions and 3 deletions
+5 -2
View File
@@ -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"])
+4 -1
View File
@@ -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!")