Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions packages/delegator-e2e/src/await-dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,15 @@ const deployEnvironment = async () => {

const timeoutRef = setTimeout(() => (hasTimedOut = true), TIMEOUT_MS);

await waitFor('Blockchain node', nodeUrl);

const waitingForDependencies = Promise.all([
await Promise.all([
waitFor('Blockchain node', nodeUrl),
waitFor('Bundler', bundlerUrl),
waitFor('Mock paymaster', paymasterUrl),
]);

const environment = await deployEnvironment();
await writeFile('./.gator-env.json', JSON.stringify(environment, null, 2));

await waitingForDependencies;

clearTimeout(timeoutRef);

if (hasTimedOut) {
Expand Down
Loading