commit c6e58d9c544b79f60e2efeecce8733cd2be46ba9 Author: iwakeh iwakeh@torproject.org Date: Fri Sep 30 11:52:38 2016 +0200
Added the ShutdownGraceWaitMinutes property to RunOnce test for branch diversity in testing. --- src/test/java/org/torproject/collector/cron/SchedulerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test/java/org/torproject/collector/cron/SchedulerTest.java b/src/test/java/org/torproject/collector/cron/SchedulerTest.java index cec182a..eba05ce 100644 --- a/src/test/java/org/torproject/collector/cron/SchedulerTest.java +++ b/src/test/java/org/torproject/collector/cron/SchedulerTest.java @@ -65,7 +65,8 @@ public class SchedulerTest { public void testRunOnce() throws Exception { Map<Key, Class<? extends CollecTorMain>> ctms = new HashMap<>(); Configuration conf = new Configuration(); - conf.load(new ByteArrayInputStream(runConfigProperties.getBytes())); + conf.load(new ByteArrayInputStream(("ShutdownGraceWaitMinutes=1\n" + + runConfigProperties).getBytes())); conf.setProperty(Key.RunOnce.name(), "true"); ctms.put(Key.TorperfActivated, Counter.class); ctms.put(Key.BridgedescsActivated, Counter.class);