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

AppTP: Flaky whenLocalDateNowThenReturnWeeklyCohort test #5426

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

anikiki
Copy link
Contributor

@anikiki anikiki commented Dec 30, 2024

Task/Issue URL: https://app.asana.com/0/1200905986587319/1209058892339948/f

Description

Fixed flaky test.
whenLocalDateNowThenReturnWeeklyCohort should assert on week based year and not the year directly as this makes the expected value to be incorrect in edge-cases where the date is a date in a year and falls into a previous year week. I.e 2025-01-01.

Steps to test this PR

Note: PR Unit tests should pass as it was submitted the same day that caused the failure (2024-01-30).

  • change whenLocalDateNowThenReturnWeeklyCohort date to be LocalDate.of(2024, 1, 30)
  • verify test passes

NO UI changes

Copy link
Contributor Author

anikiki commented Dec 30, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

@anikiki anikiki changed the title Fixed flaky test. AppTP: Flaky whenLocalDateNowThenReturnWeeklyCohort test Dec 30, 2024
@anikiki anikiki marked this pull request as ready for review December 30, 2024 11:03
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.

1 participant