From bfa6d8be0cdb077b9fe9a341812e075e729f78ab Mon Sep 17 00:00:00 2001 From: Kanstantsin Shautsou Date: Mon, 24 Aug 2015 03:06:37 +0300 Subject: [PATCH] Remove hardcode in tar test --- core/src/test/java/hudson/FilePathTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/hudson/FilePathTest.java b/core/src/test/java/hudson/FilePathTest.java index 43f48eafb9..daae3fcf6f 100644 --- a/core/src/test/java/hudson/FilePathTest.java +++ b/core/src/test/java/hudson/FilePathTest.java @@ -371,7 +371,7 @@ public class FilePathTest { // Decompress FilePath outDir = new FilePath(temp.newFolder(filePrefix + "_out")); final FilePath outFile = outDir.child(tempFile.getName()); - tmpDirPath.child( filePrefix + ".tar").untar(outDir, TarCompression.NONE); + tmpDirPath.child(tarFile.getName()).untar(outDir, TarCompression.NONE); assertEquals("Result file after the roundtrip differs from the initial file", new FilePath(tempFile).digest(), outFile.digest()); }