Try fixing Timer bug

Change-Id: I044c0f5c8eb9874b4508da216a827c86fdd8b436
This commit is contained in:
Yuta HIGUCHI 2014-10-06 21:44:48 -07:00
parent af797185a5
commit a546afc37a
2 changed files with 3 additions and 4 deletions

View File

@ -13,7 +13,6 @@ import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.junit.Ignore;
import org.junit.Test;
import org.onlab.onos.net.ConnectPoint;
import org.onlab.onos.net.Device;
@ -82,7 +81,6 @@ public class HostMonitorTest {
}
@Test
@Ignore
public void testMonitorHostDoesNotExist() throws Exception {
HostManager hostManager = createMock(HostManager.class);

View File

@ -28,8 +28,9 @@ public final class Timer {
private static synchronized void initTimer() {
if (Timer.timer == null) {
Timer.timer = new HashedWheelTimer();
Timer.timer.start();
HashedWheelTimer hwTimer = new HashedWheelTimer();
hwTimer.start();
Timer.timer = hwTimer;
}
}