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

STCOR-801 Move async localforage.clear to afterEach #1409

Merged
merged 3 commits into from
Jan 25, 2024
Merged

Conversation

JohnC-80
Copy link
Contributor

@JohnC-80 JohnC-80 commented Jan 25, 2024

The call to localForage.clear returns a promise, so it's best to handle it within an async call so that tests can wait for it. This seems to explain some difference we're seeing in timing between local test runs and CI such as the test runs from #1392

Copy link

github-actions bot commented Jan 25, 2024

Jest Unit Test Statistics

137 tests  ±0   137 ✔️ ±0   23s ⏱️ ±0s
  18 suites ±0       0 💤 ±0 
    1 files   ±0       0 ±0 

Results for commit 0d4e35b. ± Comparison against base commit fafd4f8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 25, 2024

BigTest Unit Test Statistics

    1 files  ±0      1 suites  ±0   10s ⏱️ ±0s
271 tests ±0  265 ✔️ ±0  6 💤 ±0  0 ±0 
274 runs  ±0  268 ✔️ ±0  6 💤 ±0  0 ±0 

Results for commit 0d4e35b. ± Comparison against base commit fafd4f8.

This pull request removes 5 and adds 3 tests. Note that renamed tests count towards both.
      equal to check email label in english translation
      equal to check email precautions label in english translation
      equal to sent email precautions label in english translation
Chrome_120_0_0_0_(Linux_x86_64).Forgot username form test check email status page tests ‑ Forgot username form test check email status page tests should have the header with an appropriate text content
Chrome_120_0_0_0_(Linux_x86_64).Forgot username form test check email status page tests ‑ Forgot username form test check email status page tests should have the paragraph with an appropriate text content
Chrome_120_0_0_0_(Linux_x86_64).Forgot username form test check email status page tests ‑ Forgot username form test check email status page tests should have the header with an appropriate text content
      equal to check email label in english translation
Chrome_120_0_0_0_(Linux_x86_64).Forgot username form test check email status page tests ‑ Forgot username form test check email status page tests should have the paragraph with an appropriate text content
      equal to check email precautions label in english translation
Chrome_120_0_0_0_(Linux_x86_64).Forgot username form test check email status page tests ‑ Forgot username form test check email status page tests should have the paragraph with an appropriate text content
      equal to sent email precautions label in english translation

♻️ This comment has been updated with latest results.

Copy link
Member

@zburke zburke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try it. Since afterEach can be properly async, maybe this is our ticket to real reliability. Nice sleuthing! 🕵️

@JohnC-80 JohnC-80 marked this pull request as ready for review January 25, 2024 15:35
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@JohnC-80 JohnC-80 merged commit 592b1a0 into master Jan 25, 2024
6 checks passed
@JohnC-80 JohnC-80 deleted the STCOR-801 branch January 25, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants