Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-48407] Re-enable AtomicFileWriterTest#checkPermissionsRespec…
…tUmask() (#3275) * [JENKINS-48407] Re-enable test The previous test assumed permissions would always be the same, when they actually depend on umask settings. This change creates a file *not* using the temporary API, gets its permissions then compares it to the ones obtained using AtomicFileWriter. Note: we now only check the given permissions, not the "non-given". * Use assertThat(..., equalTo()) instead of a manual loop * Remove unused imports * Use TemporaryFolder instead of manual temporary dir creation
- Loading branch information
1 parent
ac05680
commit 6cefcf1
Showing
1 changed file
with
38 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters