Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix FedoraRepositoryBackupTest.java - Get the canonical path of the t…
…mp directory to better mimic what happens in the class being tested.
  • Loading branch information
Robin Taylor authored and Andrew Woods committed Sep 10, 2013
1 parent ead4e8b commit 15d2277
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -82,11 +82,12 @@ public void testRunBackupWithDir() throws Exception {
mockProblems);

String tmpDir = System.getProperty("java.io.tmpdir");
String tmpDirPath = new File(tmpDir).getCanonicalPath();
InputStream inputStream = new ByteArrayInputStream(tmpDir.getBytes());

String backupPath = repoBackup.runBackup(inputStream);
assertNotNull(backupPath);
assertEquals(tmpDir, backupPath);
assertEquals(tmpDirPath, backupPath);
}

}

0 comments on commit 15d2277

Please sign in to comment.