Skip to content

Replace sleeps in FileUtilsTest with explicit modification times (3.x) - #378

Merged
slachiewicz merged 1 commit into
plexus-utils-3.xfrom
agent/utils-no-sleep-3x
Nov 22, 2026
Merged

slachiewicz merged 1 commit into
plexus-utils-3.xfrom
agent/utils-no-sleep-3x

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The two copyIfModified tests slept a second to get distinct timestamps; they now set lastModified explicitly, as copyIfModifiedWhenSourceHasZeroDate does, and the reallySleep helper is gone. The tests no longer depend on the file system's timestamp granularity.

@slachiewicz slachiewicz added the maintenance Cleanup, refactoring or other internal change label Nov 22, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 22, 2026 16:58
@slachiewicz
slachiewicz merged commit 9918ffc into plexus-utils-3.x Nov 22, 2026
13 checks passed
@slachiewicz
slachiewicz deleted the agent/utils-no-sleep-3x branch November 22, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Cleanup, refactoring or other internal change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant