mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-10 04:59:54 +00:00
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:
@@ -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();
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user