Using epoch for the entries in the test CorDapp jars to remove that non-determinism (#4243)

This commit is contained in:
Shams Asari 2018-11-16 12:19:29 +00:00 committed by GitHub
parent 3ea03068b8
commit d138914640
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ fun TestCordappImpl.packageAsJar(file: Path) {
scanResult.use {
val manifest = createTestManifest(name, title, version, vendor, targetVersion)
JarOutputStream(file.outputStream(), manifest).use { jos ->
val time = FileTime.from(Instant.now())
val time = FileTime.from(Instant.EPOCH)
// The same resource may be found in different locations (this will happen when running from gradle) so just
// pick the first one found.
scanResult.allResources.asMap().forEach { path, resourceList ->