Skip to content

Commit

Permalink
Remove abort controller
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Sep 10, 2023
1 parent b0d690d commit 41cabaa
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions packages/cli/test/e2e/voluntaryExitFromApi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,8 @@ describe("voluntary exit from api", function () {
}
});

// To cleanup the event stream connection
const httpClientController = new AbortController();

const beaconClient = getClient(
{baseUrl: `http://127.0.0.1:${beaconPort}`, getAbortSignal: () => httpClientController.signal},
{config}
).beacon;
const keymanagerClient = getKeymanagerClient(
{baseUrl: `http://127.0.0.1:${keymanagerPort}`, getAbortSignal: () => httpClientController.signal},
{config}
);
const beaconClient = getClient({baseUrl: `http://127.0.0.1:${beaconPort}`}, {config}).beacon;
const keymanagerClient = getKeymanagerClient({baseUrl: `http://127.0.0.1:${keymanagerPort}`}, {config});

// Wait for beacon node API to be available + genesis
await retry(
Expand Down Expand Up @@ -102,8 +93,5 @@ describe("voluntary exit from api", function () {
},
{retryDelay: 1000, retries: 20}
);

// Disconnect the event stream for the client
httpClientController.abort();
});
});

0 comments on commit 41cabaa

Please sign in to comment.