# HG changeset patch # User Jon VanAlten # Date 1372953114 21600 # Node ID 8cd620e9a6586d0f7ac542cbcd5b74bc5e275b9c # Parent 2932f90a008fab923ca3546661f52d14bdcc83ac Fix IOException in WebAppTest reviewed-by: ebaron review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-July/007245.html diff -r 2932f90a008f -r 8cd620e9a658 integration-tests/src/test/java/com/redhat/thermostat/itest/IntegrationTest.java --- a/integration-tests/src/test/java/com/redhat/thermostat/itest/IntegrationTest.java Tue Jul 09 11:03:56 2013 -0400 +++ b/integration-tests/src/test/java/com/redhat/thermostat/itest/IntegrationTest.java Thu Jul 04 09:51:54 2013 -0600 @@ -163,7 +163,9 @@ for (String toDelete : filesToDelete) { File theFile = new File(path, toDelete); if (!theFile.delete()) { - throw new IOException("cant delete: '" + theFile.toString() + "'."); + if (theFile.exists()) { + throw new IOException("cant delete: '" + theFile.toString() + "'."); + } } } }