BUG 2762 : Fix issues found in previous patch 12/15812/1
authorMoiz Raja <moraja@cisco.com>
Fri, 27 Feb 2015 02:51:00 +0000 (18:51 -0800)
committerMoiz Raja <moraja@cisco.com>
Fri, 27 Feb 2015 02:51:00 +0000 (18:51 -0800)
Comments from https://git.opendaylight.org/gerrit/#/c/15798

Change-Id: Iba4ec3950dd1726827d4a69bd4d75469d805898d
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/TransactionRateLimitingCommitCallbackTest.java

index b037627..f97e325 100644 (file)
@@ -68,14 +68,6 @@ public class TransactionRateLimitingCommitCallbackTest {
         commitCallback.success();
 
         verify(actorContext).setTxCreationLimit(Matchers.doubleThat(approximately(292)));
         commitCallback.success();
 
         verify(actorContext).setTxCreationLimit(Matchers.doubleThat(approximately(292)));
-
-        doReturn(TimeUnit.MILLISECONDS.toNanos(0) * 1D).when(commitSnapshot).getValue(0.1);
-
-        commitCallback = new TransactionRateLimitingCallback(actorContext);
-        commitCallback.run();
-        commitCallback.success();
-
-        verify(actorContext).setTxCreationLimit(Matchers.doubleThat(approximately(292)));
     }
 
     @Test
     }
 
     @Test
@@ -188,7 +180,7 @@ public class TransactionRateLimitingCommitCallbackTest {
 
             @Override
             public void describeTo(Description description) {
 
             @Override
             public void describeTo(Description description) {
-
+                description.appendText("> " + val +" < " + (val+1));
             }
         };
     }
             }
         };
     }