Disable test on windows because all jar files are locked and the repository can't even be deleted

This commit is contained in:
Guillaume Nodet
2021-01-13 15:19:17 +01:00
parent 6dd4add35e
commit 8d929889da

View File

@@ -18,6 +18,7 @@ package org.mvndaemon.mvnd.it;
import java.io.IOException;
import java.nio.file.Path;
import javax.inject.Inject;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Test;
import org.mvndaemon.mvnd.assertj.TestClientOutput;
import org.mvndaemon.mvnd.client.Client;
@@ -37,6 +38,9 @@ public class DeleteRepoNativeIT {
@Test
void buildDeleteRepoAndRebuild() throws IOException, InterruptedException {
Assumptions.assumeTrue(Os.current() != Os.WINDOWS,
"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);