|
@@ -95,6 +95,7 @@ import static org.junit.Assert.assertSame;
|
|
|
import static org.junit.Assert.assertTrue;
|
|
|
import static org.junit.Assert.fail;
|
|
|
import static org.mockito.ArgumentMatchers.any;
|
|
|
+import static org.mockito.ArgumentMatchers.eq;
|
|
|
import static org.mockito.Mockito.spy;
|
|
|
import static org.mockito.Mockito.timeout;
|
|
|
import static org.mockito.Mockito.verify;
|
|
@@ -1133,7 +1134,7 @@ public class TestRPC extends TestRpcBase {
|
|
|
return null;
|
|
|
}
|
|
|
}));
|
|
|
- verify(spy, timeout(500).times(i + 1)).add(any());
|
|
|
+ verify(spy, timeout(500).times(i + 1)).addInternal(any(), eq(false));
|
|
|
}
|
|
|
try {
|
|
|
proxy.sleep(null, newSleepRequest(100));
|
|
@@ -1204,7 +1205,7 @@ public class TestRPC extends TestRpcBase {
|
|
|
return null;
|
|
|
}
|
|
|
}));
|
|
|
- verify(spy, timeout(500).times(i + 1)).add(any());
|
|
|
+ verify(spy, timeout(500).times(i + 1)).addInternal(any(), eq(false));
|
|
|
}
|
|
|
// Start another sleep RPC call and verify the call is backed off due to
|
|
|
// avg response time(3s) exceeds threshold (2s).
|