HBASE-22295 Fix TestClientOperationTimeout

Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
zhangduo 2019-04-23 21:54:31 +08:00
parent 47cb6295fa
commit 127bef4d10
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ public class TestClientOperationTimeout {
* Tests that a get on a table throws {@link SocketTimeoutException} when the operation takes
* longer than 'hbase.client.operation.timeout'.
*/
@Test(expected = SocketTimeoutException.class)
@Test(expected = RetriesExhaustedException.class)
public void testGetTimeout() throws Exception {
DELAY_GET = 600;
TABLE.get(new Get(ROW));
@ -130,7 +130,7 @@ public class TestClientOperationTimeout {
* Tests that a put on a table throws {@link SocketTimeoutException} when the operation takes
* longer than 'hbase.client.operation.timeout'.
*/
@Test(expected = SocketTimeoutException.class)
@Test(expected = RetriesExhaustedException.class)
public void testPutTimeout() throws Exception {
DELAY_MUTATE = 600;