Fixed BungeeSystemTest on systems with mysql installed

This commit is contained in:
Rsl1122 2019-01-02 16:55:37 +02:00
parent 722e28005d
commit 1773dd6b97

View File

@ -19,7 +19,6 @@ import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner; import org.mockito.junit.MockitoJUnitRunner;
import rules.BungeeComponentMocker; import rules.BungeeComponentMocker;
import rules.ComponentMocker; import rules.ComponentMocker;
import utilities.CIProperties;
import utilities.RandomData; import utilities.RandomData;
/** /**
@ -80,9 +79,6 @@ public class BungeeSystemTest {
@Test @Test
public void testEnableNoMySQL() throws EnableException { public void testEnableNoMySQL() throws EnableException {
thrown.expect(EnableException.class); thrown.expect(EnableException.class);
if (!Boolean.parseBoolean(System.getenv(CIProperties.IS_TRAVIS))) {
thrown.expectMessage("Failed to initialize pool: Communications link failure");
}
PlanSystem bungeeSystem = component.getPlanSystem(); PlanSystem bungeeSystem = component.getPlanSystem();
try { try {