From d5b7e4ab1d949ada3d32348673ff3e6261fcc214 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Thu, 13 Oct 2022 10:31:22 -0700 Subject: [PATCH] fix(tests): Removing integration tests that trips rate limit --- .../bchn/psf-slp-indexer.integration.js | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/test/integration/chains/bchn/psf-slp-indexer.integration.js b/test/integration/chains/bchn/psf-slp-indexer.integration.js index 6880450..893c6b7 100644 --- a/test/integration/chains/bchn/psf-slp-indexer.integration.js +++ b/test/integration/chains/bchn/psf-slp-indexer.integration.js @@ -156,26 +156,28 @@ describe('#psf-slp-indexer', () => { }) }) - describe('#getTokenData2', () => { - it('should get token data', async () => { - const tokenId = - 'd9aafa7acb514c597caf440ae268b5e4e955f2687e05f044cdf8fd9550d9a27b' - - // bchjs.PsfSlpIndexer.restURL = 'http://localhost:3000/v5/' - const result = await bchjs.PsfSlpIndexer.getTokenData2(tokenId) - // console.log('result: ', result) - - assert.property(result, 'tokenStats') - assert.property(result, 'mutableData') - assert.property(result, 'immutableData') - assert.property(result, 'tokenIcon') - assert.property(result, 'fullSizedUrl') - assert.property(result, 'optimizedTokenIcon') - assert.property(result, 'optimizedFullSizedUrl') - assert.property(result, 'iconRepoCompatible') - assert.property(result, 'ps002Compatible') - }) - }) + // This test is commented out because it can not succeed in the BVT without + // tripping rate limits. + // describe('#getTokenData2', () => { + // it('should get token data', async () => { + // const tokenId = + // 'd9aafa7acb514c597caf440ae268b5e4e955f2687e05f044cdf8fd9550d9a27b' + // + // // bchjs.PsfSlpIndexer.restURL = 'http://localhost:3000/v5/' + // const result = await bchjs.PsfSlpIndexer.getTokenData2(tokenId) + // // console.log('result: ', result) + // + // assert.property(result, 'tokenStats') + // assert.property(result, 'mutableData') + // assert.property(result, 'immutableData') + // assert.property(result, 'tokenIcon') + // assert.property(result, 'fullSizedUrl') + // assert.property(result, 'optimizedTokenIcon') + // assert.property(result, 'optimizedFullSizedUrl') + // assert.property(result, 'iconRepoCompatible') + // assert.property(result, 'ps002Compatible') + // }) + // }) }) // Promise-based sleep function