Fix the MavenITmng7470ResolverTransportTest (#161)

The test must be forked, as it fails to work
in embedded mode, as loggers seems already inited
This commit is contained in:
Tamas Cservenak 2022-05-16 20:41:52 +02:00 committed by GitHub
parent 1c034e2b65
commit 6c2ba8602e
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ public class MavenITmng7470ResolverTransportTest
private void performTest( /* nullable */ final String transport, final String logSnippet ) throws Exception
{
Verifier verifier = newVerifier( projectDir.getAbsolutePath() );
verifier.setForkJvm( true );
Map<String, String> properties = new HashMap<>();
properties.put( "@port@", Integer.toString( port ) );
verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8", properties );