Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Changed key actors to use bounded mailbox
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
ShardManagerTest.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardManagerTest.java
b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardManagerTest.java
index e6f68c032a325f59bea291e2f17e129fd47da766..d16e4f53de7552bd23a1be0ca8d022071bd07245 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardManagerTest.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardManagerTest.java
@@
-46,7
+46,7
@@
public class ShardManagerTest {
final TestActorRef<ShardManager> subject =
TestActorRef.create(system, props);
final TestActorRef<ShardManager> subject =
TestActorRef.create(system, props);
- new Within(duration("1 seconds")) {
+ new Within(duration("1
0
seconds")) {
@Override
protected void run() {
@Override
protected void run() {
@@
-71,7
+71,7
@@
public class ShardManagerTest {
final TestActorRef<ShardManager> subject =
TestActorRef.create(system, props);
final TestActorRef<ShardManager> subject =
TestActorRef.create(system, props);
- new Within(duration("1 seconds")) {
+ new Within(duration("1
0
seconds")) {
@Override
protected void run() {
@Override
protected void run() {
@@
-95,13
+95,13
@@
public class ShardManagerTest {
final TestActorRef<ShardManager> subject =
TestActorRef.create(system, props);
final TestActorRef<ShardManager> subject =
TestActorRef.create(system, props);
- new Within(duration("1 seconds")) {
+ new Within(duration("1
0
seconds")) {
@Override
protected void run() {
subject.tell(new FindLocalShard("inventory"), getRef());
@Override
protected void run() {
subject.tell(new FindLocalShard("inventory"), getRef());
- final String out = new ExpectMsg<String>(duration("1 seconds"), "find local") {
+ final String out = new ExpectMsg<String>(duration("1
0
seconds"), "find local") {
@Override
protected String match(Object in) {
if (in instanceof LocalShardNotFound) {
@Override
protected String match(Object in) {
if (in instanceof LocalShardNotFound) {
@@
-132,13
+132,13
@@
public class ShardManagerTest {
final TestActorRef<ShardManager> subject =
TestActorRef.create(system, props);
final TestActorRef<ShardManager> subject =
TestActorRef.create(system, props);
- new Within(duration("1 seconds")) {
+ new Within(duration("1
0
seconds")) {
@Override
protected void run() {
subject.tell(new FindLocalShard(Shard.DEFAULT_NAME), getRef());
@Override
protected void run() {
subject.tell(new FindLocalShard(Shard.DEFAULT_NAME), getRef());
- final ActorRef out = new ExpectMsg<ActorRef>(duration("1 seconds"), "find local") {
+ final ActorRef out = new ExpectMsg<ActorRef>(duration("1
0
seconds"), "find local") {
@Override
protected ActorRef match(Object in) {
if (in instanceof LocalShardFound) {
@Override
protected ActorRef match(Object in) {
if (in instanceof LocalShardFound) {
@@
-169,7
+169,7
@@
public class ShardManagerTest {
TestActorRef.create(system, props);
// the run() method needs to finish within 3 seconds
TestActorRef.create(system, props);
// the run() method needs to finish within 3 seconds
- new Within(duration("1 seconds")) {
+ new Within(duration("1
0
seconds")) {
@Override
protected void run() {
@Override
protected void run() {
@@
-209,7
+209,7
@@
public class ShardManagerTest {
TestActorRef.create(system, props);
// the run() method needs to finish within 3 seconds
TestActorRef.create(system, props);
// the run() method needs to finish within 3 seconds
- new Within(duration("1 seconds")) {
+ new Within(duration("1
0
seconds")) {
@Override
protected void run() {
@Override
protected void run() {