mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-12-16 14:52:15 +01:00
Try fixing Timer bug
Change-Id: I044c0f5c8eb9874b4508da216a827c86fdd8b436
This commit is contained in:
parent
af797185a5
commit
a546afc37a
@ -13,7 +13,6 @@ import java.util.Collections;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.onlab.onos.net.ConnectPoint;
|
import org.onlab.onos.net.ConnectPoint;
|
||||||
import org.onlab.onos.net.Device;
|
import org.onlab.onos.net.Device;
|
||||||
@ -82,7 +81,6 @@ public class HostMonitorTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
|
||||||
public void testMonitorHostDoesNotExist() throws Exception {
|
public void testMonitorHostDoesNotExist() throws Exception {
|
||||||
HostManager hostManager = createMock(HostManager.class);
|
HostManager hostManager = createMock(HostManager.class);
|
||||||
|
|
||||||
|
|||||||
@ -28,8 +28,9 @@ public final class Timer {
|
|||||||
|
|
||||||
private static synchronized void initTimer() {
|
private static synchronized void initTimer() {
|
||||||
if (Timer.timer == null) {
|
if (Timer.timer == null) {
|
||||||
Timer.timer = new HashedWheelTimer();
|
HashedWheelTimer hwTimer = new HashedWheelTimer();
|
||||||
Timer.timer.start();
|
hwTimer.start();
|
||||||
|
Timer.timer = hwTimer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user