From 550ad824accd72cf26371ca53fdc6ae4e1ceeb68 Mon Sep 17 00:00:00 2001 From: Vlad Mihalcea Date: Wed, 27 Jul 2016 17:53:00 +0300 Subject: [PATCH] HHH-11000 - Fix the port stealing issue between Arquillian and NVidia Windows driver --- hibernate-orm-modules/hibernate-orm-modules.gradle | 4 ++++ hibernate-orm-modules/src/test/resources/arquillian.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hibernate-orm-modules/hibernate-orm-modules.gradle b/hibernate-orm-modules/hibernate-orm-modules.gradle index 0eca93d4f5..b26e3880af 100644 --- a/hibernate-orm-modules/hibernate-orm-modules.gradle +++ b/hibernate-orm-modules/hibernate-orm-modules.gradle @@ -128,6 +128,10 @@ if ( JavaVersion.current().isJava9Compatible() ) { test.enabled = false } +test { + systemProperties['jboss.socket.binding.port-offset'] = 137 +} + // Unzip Wildfly Dist task extractWildFly(type: Copy) { from { diff --git a/hibernate-orm-modules/src/test/resources/arquillian.xml b/hibernate-orm-modules/src/test/resources/arquillian.xml index 0c87c1a0a9..69e5d4fd34 100644 --- a/hibernate-orm-modules/src/test/resources/arquillian.xml +++ b/hibernate-orm-modules/src/test/resources/arquillian.xml @@ -23,7 +23,7 @@ ${buildDir}/wildfly-${wildflyVersion} - -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1 + -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1 -Djboss.socket.binding.port-offset=137