()
| 299 | } |
| 300 | |
| 301 | @Test |
| 302 | public void timeoutDifferentHandle() throws Exception { |
| 303 | final GetRequest rpc = new GetRequest(TABLE, KEY, FAMILY); |
| 304 | final Deferred<Object> deferred = rpc.getDeferred(); |
| 305 | rpc.enqueueTimeout(regionclient); |
| 306 | timer.tasks.get(0).getKey().run(mock(Timeout.class)); |
| 307 | |
| 308 | assertNull(rpc.timeout_handle); |
| 309 | verify(regionclient).removeRpc(rpc, true); |
| 310 | try { |
| 311 | deferred.join(1); |
| 312 | fail("Expected a RpcTimedOutException"); |
| 313 | } catch (RpcTimedOutException ex) { } |
| 314 | } |
| 315 | |
| 316 | @Test |
| 317 | public void timeoutNulledRegionClient() throws Exception { |
nothing calls this directly
no test coverage detected