cli icon indicating copy to clipboard operation
cli copied to clipboard

Improve `fromTemplate.test.ts` to avoid intermittent error on CI

Open peter-rr opened this issue 1 year ago • 8 comments
trafficstars

Why do we need this improvement?

There is some error that occurs sporadically when running tests on CI since some days ago, always during the Test NodeJS PR - macos-latest job:

1 failing

1) template
      should install template
        should install template:
    Error: Timeout of 100000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/runner/work/cli/cli/test/integration/bundle/bundle.test.ts)
     at listOnTimeout (node:internal/timers:569:17)
     at processTimers (node:internal/timers:512:7)

Besides, the error displayed points to bundle.test.ts instead of fromTemplate.test.ts, where the error is actually happening.

cc @Souvikns

How will this change help?

This change will avoid the CI fails intermittently for the reason described on the error, so we don't need to trigger manually the GH workflow again to make the CI pass.

Screenshots

No response

How could it be implemented/designed?

The timeout set for that test might be increased or some other change should be applied to the make the test pass.

🚧 Breaking changes

No

👀 Have you checked for similar open issues?

  • [X] I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue?

None

peter-rr avatar Apr 19 '24 16:04 peter-rr