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

[mvel-352] ControlFlowTests.testCalculateAge fails #353

Merged
merged 1 commit into from Jan 26, 2024

Conversation

tkobayas
Copy link
Collaborator

  • Fix test not to depend on System.currentTimeMillis()

- Fix test not to depend on System.currentTimeMillis()
Comment on lines -8 to +12
long milliAge = System.currentTimeMillis() - gebDat.getTime();
Calendar c2 = Calendar.getInstance();
c2.set(2023,
11,
25); // 2023 dec 25
long milliAge = c2.getTimeInMillis() - gebDat.getTime();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Previously, the test depends on System.currentTimeMillis() to calculate the age and starts to fail in 2024. Wow.

@tkobayas
Copy link
Collaborator Author

@mariofusco Not an urgent fix. You may merge this after a new release.

@mariofusco mariofusco merged commit 963488e into mvel:master Jan 26, 2024
6 checks passed
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.

None yet

2 participants