Skip to content

Commit

Permalink
[Bugfix] Prevents the deletion of productive data (Stirling-Tools#1522)
Browse files Browse the repository at this point in the history
prevents the deletion of productive data
  • Loading branch information
Ludy87 authored Jul 4, 2024
1 parent a9ee698 commit 2971425
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -44,18 +43,6 @@ public void testSetServerPortStatic() {

@Test
public void testMainApplicationStartup() throws IOException, InterruptedException {
// Setup mock environment for the main method
Path settingsPath = Paths.get("configs/settings.yml");
Path customSettingsPath = Paths.get("configs/custom_settings.yml");

// Ensure the files do not exist for the test
if (Files.exists(settingsPath)) {
Files.delete(settingsPath);
}
if (Files.exists(customSettingsPath)) {
Files.delete(customSettingsPath);
}

// Run the main method
SPdfApplication.main(new String[]{});

Expand Down

0 comments on commit 2971425

Please sign in to comment.