Skip to content

Commit 181a697

Browse files
author
Simon MacMullen
committed
Oops
1 parent 4fc376c commit 181a697

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/src/com/rabbitmq/client/test/AMQConnectionTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)