KEYCLOAK-9193 CorsExampleAdapterTest fails on Windows

This commit is contained in:
vramik 2019-01-03 10:54:07 +01:00 committed by Pavel Drozd
parent 30e538d7ef
commit b2a7d42310

View file

@ -48,6 +48,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import static junit.framework.TestCase.assertNotNull; import static junit.framework.TestCase.assertNotNull;
import org.junit.Assume;
import static org.keycloak.testsuite.utils.io.IOUtil.loadRealm; import static org.keycloak.testsuite.utils.io.IOUtil.loadRealm;
import static org.keycloak.testsuite.util.URLAssert.assertCurrentUrlStartsWith; import static org.keycloak.testsuite.util.URLAssert.assertCurrentUrlStartsWith;
import static org.keycloak.testsuite.util.WaitUtils.waitForPageToLoad; import static org.keycloak.testsuite.util.WaitUtils.waitForPageToLoad;
@ -105,6 +106,7 @@ public class CorsExampleAdapterTest extends AbstractExampleAdapterTest {
@Before @Before
public void onBefore() { public void onBefore() {
Assume.assumeFalse(System.getProperty("os.name").startsWith("Windows"));
deployer.deploy(CorsDatabaseServiceTestApp.DEPLOYMENT_NAME); deployer.deploy(CorsDatabaseServiceTestApp.DEPLOYMENT_NAME);
} }