Commit 9c1141b 1 parent 75d321a commit 9c1141b Copy full SHA for 9c1141b
File tree 1 file changed +0
-3
lines changed
jib-core/src/test/java/com/google/cloud/tools/jib/tar
1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -218,21 +218,18 @@ private void verifyTarArchive(TarArchiveInputStream tarArchiveInputStream) throw
218
218
// Verifies fileB was archived correctly.
219
219
TarArchiveEntry headerFileB = tarArchiveInputStream .getNextTarEntry ();
220
220
Assert .assertEquals ("crepecake" , headerFileB .getName ());
221
- Assert .assertEquals (Instant .EPOCH , headerFileB .getModTime ().toInstant ());
222
221
byte [] fileBString = ByteStreams .toByteArray (tarArchiveInputStream );
223
222
Assert .assertArrayEquals (fileBContents , fileBString );
224
223
225
224
// Verifies directoryA was archived correctly.
226
225
TarArchiveEntry headerDirectoryA = tarArchiveInputStream .getNextTarEntry ();
227
226
Assert .assertEquals ("some/path/to/" , headerDirectoryA .getName ());
228
- Assert .assertEquals (Instant .EPOCH , headerDirectoryA .getModTime ().toInstant ());
229
227
230
228
// Verifies the long file was archived correctly.
231
229
TarArchiveEntry headerFileALong = tarArchiveInputStream .getNextTarEntry ();
232
230
Assert .assertEquals (
233
231
"some/really/long/path/that/exceeds/100/characters/abcdefghijklmnopqrstuvwxyz0123456789012345678901234567890" ,
234
232
headerFileALong .getName ());
235
- Assert .assertEquals (Instant .EPOCH , headerFileALong );
236
233
byte [] fileALongString = ByteStreams .toByteArray (tarArchiveInputStream );
237
234
Assert .assertArrayEquals (fileAContents , fileALongString );
238
235
You can’t perform that action at this time.
0 commit comments