Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fixup: extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
domob1812 committed Dec 7, 2021
1 parent 752605d commit 732e189
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/chains/ethereum/ethereum/tests/api/txpool/content.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,18 @@ describe("txpool", () => {
assert.strictEqual(queued[accounts[1]]["291"].hash, tx);
});

it("does not return confirmed transactions", async () => {
await provider.send("eth_subscribe", ["newHeads"]);
await provider.send("eth_sendTransaction", [
{ from: accounts[1], to: accounts[2] }
]);
await provider.send("evm_mine");
await provider.once("message");

const { pending, queued } = await provider.send("txpool_content");
assert.deepStrictEqual(pending, {});
assert.deepStrictEqual(queued, {});
});

});
});

0 comments on commit 732e189

Please sign in to comment.