diff --git a/jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java b/jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java index f257d9d8cc..10e7e65b3e 100644 --- a/jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java +++ b/jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java @@ -218,21 +218,18 @@ private void verifyTarArchive(TarArchiveInputStream tarArchiveInputStream) throw // Verifies fileB was archived correctly. TarArchiveEntry headerFileB = tarArchiveInputStream.getNextTarEntry(); Assert.assertEquals("crepecake", headerFileB.getName()); - Assert.assertEquals(Instant.EPOCH, headerFileB.getModTime().toInstant()); byte[] fileBString = ByteStreams.toByteArray(tarArchiveInputStream); Assert.assertArrayEquals(fileBContents, fileBString); // Verifies directoryA was archived correctly. TarArchiveEntry headerDirectoryA = tarArchiveInputStream.getNextTarEntry(); Assert.assertEquals("some/path/to/", headerDirectoryA.getName()); - Assert.assertEquals(Instant.EPOCH, headerDirectoryA.getModTime().toInstant()); // Verifies the long file was archived correctly. TarArchiveEntry headerFileALong = tarArchiveInputStream.getNextTarEntry(); Assert.assertEquals( "some/really/long/path/that/exceeds/100/characters/abcdefghijklmnopqrstuvwxyz0123456789012345678901234567890", headerFileALong.getName()); - Assert.assertEquals(Instant.EPOCH, headerFileALong); byte[] fileALongString = ByteStreams.toByteArray(tarArchiveInputStream); Assert.assertArrayEquals(fileAContents, fileALongString);