There is no need to initially delete the test local maven repo, because it is always deleted by org.mvndaemon.mvnd.junit.MvndTestExtension.MvndResource.create()

This commit is contained in:
Peter Palaga
2021-01-24 15:35:12 +01:00
parent b2f50127f6
commit 4d89464f8a
2 changed files with 4 additions and 7 deletions

View File

@@ -15,18 +15,18 @@
*/
package org.mvndaemon.mvnd.it;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.IOException;
import java.nio.file.Path;
import javax.inject.Inject;
import org.junit.jupiter.api.Test;
import org.mvndaemon.mvnd.assertj.TestClientOutput;
import org.mvndaemon.mvnd.client.Client;
import org.mvndaemon.mvnd.client.DaemonParameters;
import org.mvndaemon.mvnd.common.Message;
import org.mvndaemon.mvnd.junit.MvndTest;
import org.mvndaemon.mvnd.junit.TestUtils;
import static org.junit.jupiter.api.Assertions.assertTrue;
@MvndTest(projectDir = "src/test/projects/concurrent-downloads")
public class ConcurrentDownloadsTest {
@@ -39,8 +39,6 @@ public class ConcurrentDownloadsTest {
@Test
void build() throws IOException, InterruptedException {
final Path localMavenRepo = parameters.mavenRepoLocal();
TestUtils.deleteDir(localMavenRepo);
final TestClientOutput o = new TestClientOutput();
client.execute(o, "clean", "install", "-e", "-B").assertSuccess();

View File

@@ -42,7 +42,6 @@ public class DeleteRepoNativeIT {
"Test disabled on windows because all jar files are locked, so we can't even delete the repository");
final Path localMavenRepo = parameters.mavenRepoLocal();
TestUtils.deleteDir(localMavenRepo);
final TestClientOutput o1 = new TestClientOutput();
client.execute(o1, "clean", "install", "-e", "-B").assertSuccess();