test: RelocationTests.testCancellationCleansTempFiles may fail due to io errors while check temp files are deleted

Windows can throw NoSuchFileException when using File.walkFileTree and deleting files concurrently. This commit changes IO exceptions into assertion error so that assertBusy will wait for them as well.
This commit is contained in:
Boaz Leskes 2014-10-24 09:49:18 +02:00
parent ec3a473a00
commit f72e0c89f7
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ public class RelocationTests extends ElasticsearchIntegrationTest {
}
});
} catch (IOException e) {
throw new ElasticsearchException("failed to walk tree", e);
throw new AssertionError("failed to walk file tree starting at [" + shardLoc.toPath() + "]", e);
}
}
});