test: reenable log subscription test
This commit is contained in:
parent
ff3b6d2b8b
commit
35ee38b0f1
|
@ -3720,10 +3720,6 @@ describe('Connection', function () {
|
||||||
await connection.removeRootChangeListener(subscriptionId);
|
await connection.removeRootChangeListener(subscriptionId);
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
TODO: debug why this test is flaky. Websocket connection issues?
|
|
||||||
|
|
||||||
it('logs notification', async () => {
|
it('logs notification', async () => {
|
||||||
let listener: number | undefined;
|
let listener: number | undefined;
|
||||||
const owner = Keypair.generate();
|
const owner = Keypair.generate();
|
||||||
|
@ -3744,7 +3740,10 @@ describe('Connection', function () {
|
||||||
(async () => {
|
(async () => {
|
||||||
while (!received) {
|
while (!received) {
|
||||||
// Execute a transaction so that we can pickup its logs.
|
// 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);
|
await sleep(1000);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
@ -3759,7 +3758,6 @@ describe('Connection', function () {
|
||||||
);
|
);
|
||||||
await connection.removeOnLogsListener(listener!);
|
await connection.removeOnLogsListener(listener!);
|
||||||
}).timeout(60 * 1000);
|
}).timeout(60 * 1000);
|
||||||
*/
|
|
||||||
|
|
||||||
it('https request', async () => {
|
it('https request', async () => {
|
||||||
const connection = new Connection('https://api.mainnet-beta.solana.com');
|
const connection = new Connection('https://api.mainnet-beta.solana.com');
|
||||||
|
|
Loading…
Reference in New Issue