Skip to content

Commit

Permalink
Fix hanging tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
homer-simpleton committed May 17, 2017
1 parent 57defbe commit 0848587
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Expand Up @@ -34,7 +34,7 @@
public class CronOutputSchedule implements OutputScheduler {

/** The logger. */
private static Logger logger = LoggerFactory.getLogger(CronOutputSchedule.class);
private static Logger LOGGER = LoggerFactory.getLogger(CronOutputSchedule.class);

/** The scheduler. */
private Scheduler scheduler;
Expand Down Expand Up @@ -80,7 +80,7 @@ public void start(final Infrastructure infra) {
scheduler.scheduleJob(jobDetail, trigger);
scheduler.start();
} catch (final SchedulerException se) {
logger.error("Error occurred while starting the cron scheduler : " + se.getMessage(), se);
LOGGER.error("Error occurred while starting the cron scheduler : " + se.getMessage(), se);
}
}

Expand All @@ -98,9 +98,9 @@ public boolean isReady() {
public void stop() {
try {
// gracefully shutting down
scheduler.shutdown(true);
scheduler.shutdown(false);
} catch (final SchedulerException se) {
logger.error("Error occurred while stopping the cron scheduler : " + se.getMessage(), se);
LOGGER.error("Error occurred while stopping the cron scheduler : " + se.getMessage(), se);
}
}

Expand Down
Expand Up @@ -35,7 +35,7 @@
public class RelativeOutputSchedule implements OutputScheduler {

/** The logger. */
private static Logger logger = LoggerFactory.getLogger(RelativeOutputSchedule.class);
private static Logger LOGGER = LoggerFactory.getLogger(RelativeOutputSchedule.class);

/** The interval. */
private final long interval;
Expand Down Expand Up @@ -97,7 +97,7 @@ public void start(final Infrastructure infra) {
scheduler.scheduleJob(jobDetail, trigger);
scheduler.start();
} catch (final SchedulerException se) {
logger.error("Error occurred while starting the relative scheduler : " + se.getMessage(), se);
LOGGER.error("Error occurred while starting the relative scheduler : " + se.getMessage(), se);
}
}

Expand All @@ -113,9 +113,9 @@ public boolean isReady() {
public void stop() {
try {
// gracefully shutting down
scheduler.shutdown(true);
scheduler.shutdown(false);
} catch (final SchedulerException se) {
logger.error("Error occurred while stopping the relative scheduler : " + se.getMessage(), se);
LOGGER.error("Error occurred while stopping the relative scheduler : " + se.getMessage(), se);
}
}
}
Expand Up @@ -36,7 +36,7 @@ public abstract class DempsyBaseTest {
* Setting 'hardcore' to true causes EVERY SINGLE IMPLEMENTATION COMBINATION to be used in
* every runCombos call. This can make tests run for a loooooong time.
*/
public static boolean hardcore = Boolean.parseBoolean(System.getProperty("hardcore", "false"));
public static boolean hardcore = Boolean.parseBoolean(System.getProperty("hardcore", "true"));

/**
* If this is set to <code>true</code> then the serializers will be rotated through but
Expand All @@ -45,7 +45,7 @@ public abstract class DempsyBaseTest {
* this to false isn't likely to provide any better results than running the test multiple
* times.
*/
public static boolean butRotateSerializer = Boolean.parseBoolean(System.getProperty("butRotateSerializer", "true"));
public static boolean butRotateSerializer = Boolean.parseBoolean(System.getProperty("butRotateSerializer", "false"));

protected Logger LOGGER;

Expand Down Expand Up @@ -228,8 +228,8 @@ public NodeManagerWithContext(final NodeManager manager, final ClassPathXmlAppli

@Override
public void close() throws Exception {
ctx.close();
manager.close();
ctx.close();
}
}

Expand Down

0 comments on commit 0848587

Please sign in to comment.