File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
test/src/com/rabbitmq/client/test Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ public void testConnectionSendsSingleHeaderAndTimesOut() {
121121 */
122122 public void testConnectionHangInNegotiation () {
123123 this ._mockFrameHandler .setTimeoutCount (10 ); // to limit hang
124- MyExceptionHandler handler = new MyExceptionHandler ();
125124 assertEquals (0 , this ._mockFrameHandler .countHeadersSent ());
126125 try {
127126 ConnectionParams params = factory .params (Executors .newFixedThreadPool (1 ));
@@ -132,7 +131,7 @@ public void testConnectionHangInNegotiation() {
132131 }
133132 assertEquals (1 , this ._mockFrameHandler .countHeadersSent ());
134133 // _connection.close(0, CLOSE_MESSAGE);
135- List <Throwable > exceptionList = handler .getHandledExceptions ();
134+ List <Throwable > exceptionList = exceptionHandler .getHandledExceptions ();
136135 assertEquals ("Only one exception expected" , 1 , exceptionList .size ());
137136 assertEquals ("Wrong type of exception returned." , SocketTimeoutException .class , exceptionList .get (0 ).getClass ());
138137 }
You can’t perform that action at this time.
0 commit comments