From 35ee38b0f1f14768888e428f0233d34ff32d6288 Mon Sep 17 00:00:00 2001 From: steveluscher Date: Fri, 8 Apr 2022 16:17:21 -0700 Subject: [PATCH] test: reenable log subscription test --- web3.js/test/connection.test.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/web3.js/test/connection.test.ts b/web3.js/test/connection.test.ts index 29b851f0a5..7c521ed21e 100644 --- a/web3.js/test/connection.test.ts +++ b/web3.js/test/connection.test.ts @@ -3720,10 +3720,6 @@ describe('Connection', function () { await connection.removeRootChangeListener(subscriptionId); }); - /* - - TODO: debug why this test is flaky. Websocket connection issues? - it('logs notification', async () => { let listener: number | undefined; const owner = Keypair.generate(); @@ -3744,7 +3740,10 @@ describe('Connection', function () { (async () => { while (!received) { // Execute a transaction so that we can pickup its logs. - await connection.requestAirdrop(owner.publicKey, 1 * LAMPORTS_PER_SOL); + await connection.requestAirdrop( + owner.publicKey, + 1 * LAMPORTS_PER_SOL, + ); await sleep(1000); } })(); @@ -3759,7 +3758,6 @@ describe('Connection', function () { ); await connection.removeOnLogsListener(listener!); }).timeout(60 * 1000); - */ it('https request', async () => { const connection = new Connection('https://api.mainnet-beta.solana.com');