flink-instrumentation/workspace/flink-1.4.1-instrumented/flink-1.4.1/flink-clients/src/test/java/org/apache/flink/client/program/ClientConnectionTest.java
/**
	 * Tests the behavior against a LOCAL address where no job manager is running.
	 */
Tests the behavior against a LOCAL address where no job manager is running.
Tests the behavior against a LOCAL address where no job manager is running .
@Test
	public void testExceptionWhenLocalJobManagerUnreachablelocal() throws Exception {
		final InetSocketAddress unreachableEndpoint;
		try {
			int freePort = NetUtils.getAvailablePort();
			unreachableEndpoint = new InetSocketAddress(InetAddress.getLocalHost(), freePort);
		}
		catch (Throwable t) {
			return;
		}
		testFailureBehavior(unreachableEndpoint);
	}
@ Test public void testExceptionWhenLocalJobManagerUnreachablelocal ( ) throws Exception { final InetSocketAddress unreachableEndpoint ; try { int freePort = NetUtils . getAvailablePort ( ) ; unreachableEndpoint = new InetSocketAddress ( InetAddress . getLocalHost ( ) , freePort ) ; } catch ( Throwable t ) { return ; } testFailureBehavior ( unreachableEndpoint ) ; }
Tests the behavior against a LOCAL address where no job manager is running.
Tests the behavior against a LOCAL address where no job manager is running .
// do not fail when we spuriously fail to get a free port