Skip to content

Commit

Permalink
fix: ws batch 3
Browse files Browse the repository at this point in the history
Signed-off-by: Logan Nguyen <[email protected]>
  • Loading branch information
quiet-node committed Apr 24, 2024
1 parent 27351ef commit 354b630
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ws-server/tests/acceptance/subscribeNewHeads.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ describe('@release @web-socket-batch-3 eth_subscribe newHeads', async function (

describe('Subscriptions for newHeads', async function () {
it('should subscribe to newHeads, include transactions true, and receive a valid JSON RPC response', (done) => {
process.env.WS_NEW_HEADS_ENABLED = 'true';
const webSocket = new WebSocket(WS_RELAY_URL);
const subscriptionId = 1;
webSocket.on('open', function open() {
Expand Down Expand Up @@ -231,6 +232,7 @@ describe('@release @web-socket-batch-3 eth_subscribe newHeads', async function (
});

it('should subscribe to newHeads, without the "include transactions", and receive a valid JSON RPC response', (done) => {
process.env.WS_NEW_HEADS_ENABLED = 'true';
const webSocket = new WebSocket(WS_RELAY_URL);
const subscriptionId = 1;
webSocket.on('open', function open() {
Expand Down Expand Up @@ -260,6 +262,7 @@ describe('@release @web-socket-batch-3 eth_subscribe newHeads', async function (
});

it('should subscribe to newHeads, with "include transactions false", and receive a valid JSON RPC response', (done) => {
process.env.WS_NEW_HEADS_ENABLED = 'true';
const webSocket = new WebSocket(WS_RELAY_URL);
const subscriptionId = 1;
webSocket.on('open', function open() {
Expand Down

0 comments on commit 354b630

Please sign in to comment.