From 0d587f527e48e2fc81fc765cccc21bf5d984a00c Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Thu, 27 Dec 2018 19:13:53 +0200 Subject: [PATCH] Fixed BungeeSystemTest#testEnableNoMySQL: - Moved the condition to the correct place this time --- .../test/java/com/djrapitops/plan/BungeeSystemTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Plan/bungeecord/src/test/java/com/djrapitops/plan/BungeeSystemTest.java b/Plan/bungeecord/src/test/java/com/djrapitops/plan/BungeeSystemTest.java index 6d1901d33..b52f71a07 100644 --- a/Plan/bungeecord/src/test/java/com/djrapitops/plan/BungeeSystemTest.java +++ b/Plan/bungeecord/src/test/java/com/djrapitops/plan/BungeeSystemTest.java @@ -60,9 +60,7 @@ public class BungeeSystemTest { @Test public void bungeeDoesNotEnableWithDefaultIP() throws Exception { thrown.expect(EnableException.class); - if (!Boolean.parseBoolean(System.getenv(CIProperties.IS_TRAVIS))) { - thrown.expectMessage("IP setting still 0.0.0.0 - Configure AlternativeIP/IP that connects to the Proxy server."); - } + thrown.expectMessage("IP setting still 0.0.0.0 - Configure AlternativeIP/IP that connects to the Proxy server."); PlanSystem bungeeSystem = component.getPlanSystem(); try { @@ -82,7 +80,9 @@ public class BungeeSystemTest { @Test public void testEnableNoMySQL() throws EnableException { thrown.expect(EnableException.class); - thrown.expectMessage("Failed to initialize pool: Communications link failure"); + if (!Boolean.parseBoolean(System.getenv(CIProperties.IS_TRAVIS))) { + thrown.expectMessage("Failed to initialize pool: Communications link failure"); + } PlanSystem bungeeSystem = component.getPlanSystem(); try {