commit | c70520135426a27a0137981b3e8be9b26fd4bc46 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Mon Sep 22 19:11:00 2014 -0700 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Mon Sep 22 19:11:53 2014 -0700 |
tree | f4156aa1cc9c351725fd82d8d50e57d2c3dfcc34 | |
parent | fc9a4ff73ce1b9c72a0667eb4298198873f26810 [diff] |
Fix for Kryo related issue crossing OSGi bundle boundaries. Change-Id: I121dfe360de14a5b4760e5d2fd8cb2db93e0be63
diff --git a/core/net/src/test/java/org/onlab/onos/net/device/impl/DistributedDeviceManagerTest.java b/core/net/src/test/java/org/onlab/onos/net/device/impl/DistributedDeviceManagerTest.java index a928572..222216c 100644 --- a/core/net/src/test/java/org/onlab/onos/net/device/impl/DistributedDeviceManagerTest.java +++ b/core/net/src/test/java/org/onlab/onos/net/device/impl/DistributedDeviceManagerTest.java
@@ -112,7 +112,7 @@ mgr.deactivate(); dstore.deactivate(); - dstore.theInstance.shutdown(); + ((TestDistributedDeviceStore) dstore).shutdownHz(); } private void connectDevice(DeviceId deviceId, String swVersion) { @@ -290,5 +290,12 @@ } }; } + + /** + * Shutdowns the hazelcast instance. + */ + public void shutdownHz() { + theInstance.shutdown(); + } } }