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

test was asserting more than Java promises #13

Merged
merged 1 commit into from
Nov 16, 2020
Merged

test was asserting more than Java promises #13

merged 1 commit into from
Nov 16, 2020

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Nov 16, 2020

Consequently failing flakily. Last modified time is platform dependent and not a simple property of an object

@michael-o

@elharo elharo requested a review from michael-o November 16, 2020 15:31
@elharo elharo merged commit c4fe61e into master Nov 16, 2020
@elharo elharo deleted the modify branch November 16, 2020 17:05
@rfscholte
Copy link
Contributor

Wait a minute, isn't this fixed with codehaus-plexus/plexus-archiver@e55f320 ?

@elharo
Copy link
Contributor Author

elharo commented Nov 16, 2020

I don't think it is. That was an incorrect diagnosis of the test failure. The modification data equality failures were not simply the result of truncating milliseconds; and if they had been, would have been fixed by JDK 10+, which they weren't.

The real issue is that modification dates aren't always precisely reproducible to the millisecond and can change asynchornously. It looks like a simple setter/getter for an object property, but it isn't.

@rfscholte
Copy link
Contributor

ok, just wanted to make sure change is done for the right reason.

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.

3 participants