Skip to content

[_] fix(tests): fixed tests failing randomly due to kyber provider#525

Merged
apsantiso merged 1 commit into
masterfrom
fix/fix-tests-failing-randomly-due-to-kyber-provider
Apr 18, 2025
Merged

[_] fix(tests): fixed tests failing randomly due to kyber provider#525
apsantiso merged 1 commit into
masterfrom
fix/fix-tests-failing-randomly-due-to-kyber-provider

Conversation

@apsantiso
Copy link
Copy Markdown
Collaborator

@apsantiso apsantiso commented Apr 17, 2025

We were getting the Test environment has been torn down error randomly when running our unit tests on github actions. I was able to reproduce this on my local by setting --verbose --detectOpenHandles --debug flags in the test command in package.json.

Note:
We need to import ESM modules using this function due to NestJS limitations.

Changes

  1. Modified importEsmPackage function to prevent race conditions.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 17, 2025

@apsantiso apsantiso self-assigned this Apr 18, 2025
@apsantiso apsantiso merged commit 3ac2581 into master Apr 18, 2025
11 checks passed
@apsantiso apsantiso deleted the fix/fix-tests-failing-randomly-due-to-kyber-provider branch April 18, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant