Skip to content

Commit 4b1f4f4

Browse files
committed
Explicit touching.
1 parent 65a7e62 commit 4b1f4f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/java_integration/utilities/jar_glob_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def jar_entries(full_entries)
106106
# This should delete the /glob_target and /glob_target/bar.txt entries
107107
`zip -d #{jar_path} glob_target/bar.txt`
108108

109+
# Explicitly touch the file in case mtime and zip don't agree
110+
`touch #{jar_path}`
111+
109112
after = Dir.glob("#{jar_path}!/**/*").size
110113

111114
expect(after - before).to eq(-2)

0 commit comments

Comments
 (0)