Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: revert gas price estimation test flakiness #2993

Merged
merged 8 commits into from
Sep 4, 2024
3 changes: 3 additions & 0 deletions .changeset/dull-clouds-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
---
maschad marked this conversation as resolved.
Show resolved Hide resolved
ci: revert gas price estimation test flakiness
24 changes: 9 additions & 15 deletions packages/account/src/test-utils/launchNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,21 +265,15 @@ export const launchNode = async ({
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const [realIp, realPort] = rowWithUrl.split(' ').at(-1)!.trim().split(':'); // e.g. "2024-02-13T12:31:44.445844Z INFO new{name=fuel-core}: fuel_core::graphql_api::service: 216: Binding GraphQL provider to 127.0.0.1:35039"

// TODO: Remove delay after fuel-core issue is fixed
// https://github.com/FuelLabs/fuel-core/issues/2107
setTimeout(
() =>
// Resolve with the cleanup method.
resolve({
cleanup,
ip: realIp,
port: realPort,
url: `http://${realIp}:${realPort}/v1/graphql`,
snapshotDir: snapshotDirToUse as string,
pid: child.pid as number,
}),
500
);
// Resolve with the cleanup method.
resolve({
cleanup,
ip: realIp,
port: realPort,
url: `http://${realIp}:${realPort}/v1/graphql`,
snapshotDir: snapshotDirToUse as string,
pid: child.pid as number,
});
maschad marked this conversation as resolved.
Show resolved Hide resolved
}
if (/error/i.test(text)) {
// eslint-disable-next-line no-console
Expand Down
Loading