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

fix: non deterministic date in test #11787

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Conversation

NicolasMassart
Copy link
Contributor

@NicolasMassart NicolasMassart commented Oct 14, 2024

Description

Fixes date that was generating an ever changing duration in the snapshot.

  • replace it with a relative date to the moment the test is running to make the duration always one day: the notification renders as if it was sent yesterday, always.
  • fix duration to one day (yesterday) as we have to fix one and it's not a worse value than any other.
  • rename test case to match guideline while I was on it...

Related issues

Fixes #11785

Manual testing steps

N/A

Screenshots/Recordings

N/A

Before

N/A

After

N/A

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@NicolasMassart NicolasMassart added the Run Smoke E2E Triggers smoke e2e on Bitrise label Oct 14, 2024
Copy link
Contributor

github-actions bot commented Oct 14, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 4083df1
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/727bd43c-8217-4017-9572-782d0fa76512

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@NicolasMassart
Copy link
Contributor Author

Update with #11788 once merged

Copy link

sonarcloud bot commented Oct 14, 2024

@sethkfman sethkfman added this pull request to the merge queue Oct 14, 2024
Merged via the queue into main with commit 6db794f Oct 14, 2024
37 checks passed
@sethkfman sethkfman deleted the fix/11785_non_deterministic_test branch October 14, 2024 20:48
@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

fix: non deterministic unit test failure
4 participants