Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/java_integration/utilities/jar_glob_spec.rb
Original file line number Diff line number Diff line change
@@ -100,12 +100,16 @@ def jar_entries(full_entries)

before = Dir.glob("#{jar_path}!/**/*").size

puts File.mtime(jar_path)

# Need to sleep a little bit to make sure that modified time is updated
sleep 2

# This should delete the /glob_target and /glob_target/bar.txt entries
`zip -d #{jar_path} glob_target/bar.txt`

puts File.mtime(jar_path)

# Explicitly touch the file in case mtime and zip don't agree
`touch #{jar_path}`

0 comments on commit bc52e36

Please sign in to comment.