From 7eef30a5caac5873f53bda1835c7bfd493f93f9f Mon Sep 17 00:00:00 2001 From: Falko Modler Date: Tue, 14 Jul 2020 00:13:11 +0200 Subject: [PATCH] DevMojoIT: Remove superfluous first mvn install to avoid race condition --- .../maven/src/test/java/io/quarkus/maven/it/DevMojoIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-tests/maven/src/test/java/io/quarkus/maven/it/DevMojoIT.java b/integration-tests/maven/src/test/java/io/quarkus/maven/it/DevMojoIT.java index 6daff952cd203..59e55947cda48 100644 --- a/integration-tests/maven/src/test/java/io/quarkus/maven/it/DevMojoIT.java +++ b/integration-tests/maven/src/test/java/io/quarkus/maven/it/DevMojoIT.java @@ -816,10 +816,10 @@ public void testResourcesFromClasspath() throws MavenInvocationException, IOExce RunningInvoker invoker = new RunningInvoker(testDir, false); // to properly surface the problem of multiple classpath entries, we need to install the project to the local m2 - invoker.execute(Collections.singletonList("install"), Collections.emptyMap()); MavenProcessInvocationResult installInvocation = invoker.execute(Arrays.asList("clean", "install", "-DskipTests"), Collections.emptyMap()); assertThat(installInvocation.getProcess().waitFor(2, TimeUnit.MINUTES)).isTrue(); + assertThat(installInvocation.getExecutionException()).isNull(); assertThat(installInvocation.getExitCode()).isEqualTo(0); // run dev mode from the runner module