File tree Expand file tree Collapse file tree
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1163,7 +1163,7 @@ public void testBadSetup() throws Exception {
11631163 RPC .setProtocolEngine (clientConf , TestRpcService .class ,
11641164 ProtobufRpcEngine .class );
11651165 TestRpcService client = null ;
1166- int numThreads = Thread .getAllStackTraces ().size ();
1166+ int threadCount = Thread .getAllStackTraces ().size ();
11671167 try {
11681168 try {
11691169 client = RPC .getProtocolProxy (
@@ -1177,8 +1177,8 @@ public void testBadSetup() throws Exception {
11771177 assertTrue ("Didn't throw exception!" , false );
11781178 } catch (ServiceException nfe ) {
11791179 // ensure no extra threads are running.
1180- assertEquals (numThreads , Thread .getAllStackTraces ().size ());
1181- } catch (Throwable t ) {
1180+ assertEquals (threadCount , Thread .getAllStackTraces ().size ());
1181+ } catch (Throwable t ) {
11821182 assertTrue ("wrong exception: " + t , false );
11831183 }
11841184 } finally {
You can’t perform that action at this time.
0 commit comments