Fixed testing with travisEnv flag turned off

pull/626/head
jackygurui 8 years ago
parent aa3fd71bdb
commit 382ad73c11

@ -47,16 +47,13 @@ public class RedissonExecutorServiceTest extends BaseTest {
@AfterClass
public static void afterClass() throws IOException, InterruptedException {
if (!RedissonRuntimeEnvironment.isTravis) {
BaseTest.afterClass();
node.shutdown();
}
}
@Before
@Override
public void before() throws IOException, InterruptedException {
if (RedissonRuntimeEnvironment.isTravis) {
super.before();
Config config = createConfig();
RedissonNodeConfig nodeConfig = new RedissonNodeConfig(config);
@ -64,7 +61,6 @@ public class RedissonExecutorServiceTest extends BaseTest {
node = RedissonNode.create(nodeConfig);
node.start();
}
}
@After
@Override

@ -50,7 +50,6 @@ public class RedissonScheduledExecutorServiceTest extends BaseTest {
@Before
@Override
public void before() throws IOException, InterruptedException {
if (RedissonRuntimeEnvironment.isTravis) {
super.before();
Config config = createConfig();
RedissonNodeConfig nodeConfig = new RedissonNodeConfig(config);
@ -58,16 +57,13 @@ public class RedissonScheduledExecutorServiceTest extends BaseTest {
node = RedissonNode.create(nodeConfig);
node.start();
}
}
@After
@Override
public void after() throws InterruptedException {
if (RedissonRuntimeEnvironment.isTravis) {
super.after();
node.shutdown();
}
}
@Test
public void testCronExpression() throws InterruptedException, ExecutionException {

Loading…
Cancel
Save