Delete .sha256 file which was left lying around after running the bootstrap unit tests.

This commit is contained in:
CalDescent 2021-10-25 18:20:58 +01:00
parent 49dd63af1e
commit 69e557e70d

View File

@ -208,8 +208,11 @@ public class BootstrapTests extends Common {
private void deleteBootstraps() throws IOException {
try {
Path path = Paths.get(String.format("%s%s", Settings.getInstance().getBootstrapFilenamePrefix(), "bootstrap-archive.7z"));
Files.delete(path);
Path archivePath = Paths.get(String.format("%s%s", Settings.getInstance().getBootstrapFilenamePrefix(), "bootstrap-archive.7z"));
Files.delete(archivePath);
Path sha256Path = Paths.get(String.format("%s%s", Settings.getInstance().getBootstrapFilenamePrefix(), "bootstrap-archive.7z.sha256"));
Files.delete(sha256Path);
} catch (NoSuchFileException e) {
// Nothing to delete