YARN-4916. TestNMProxy.tesNMProxyRPCRetry fails. Contributed by Tibor Kiss.
This commit is contained in:
parent
917464505c
commit
0005816743
|
@ -188,8 +188,7 @@ public class TestNMProxy extends BaseContainerManagerTest {
|
||||||
Assert.fail("should get socket exception");
|
Assert.fail("should get socket exception");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// socket exception should be thrown immediately, without RPC retries.
|
// socket exception should be thrown immediately, without RPC retries.
|
||||||
Assert.assertTrue(e.toString().
|
Assert.assertTrue(e instanceof java.net.SocketException);
|
||||||
contains("Failed on local exception: java.net.SocketException"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue