YARN-4916. TestNMProxy.tesNMProxyRPCRetry fails. Contributed by Tibor Kiss.

This commit is contained in:
Junping Du 2016-04-05 09:01:08 -07:00
parent 917464505c
commit 0005816743
1 changed files with 1 additions and 2 deletions

View File

@ -188,8 +188,7 @@ public void testNMProxyRPCRetry() throws Exception {
Assert.fail("should get socket exception");
} catch (IOException e) {
// socket exception should be thrown immediately, without RPC retries.
Assert.assertTrue(e.toString().
contains("Failed on local exception: java.net.SocketException"));
Assert.assertTrue(e instanceof java.net.SocketException);
}
}