Skip to content

Commit 64c4d20

Browse files
author
Simon MacMullen
committed
Another racy test, verty similar to bug 24092.
1 parent df3d31a commit 64c4d20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/src/com/rabbitmq/client/test/server/Permissions.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package com.rabbitmq.client.test.server;
1919

20+
import com.rabbitmq.client.AlreadyClosedException;
2021
import com.rabbitmq.client.PossibleAuthenticationFailureException;
2122
import com.rabbitmq.client.test.BrokerTestCase;
2223
import java.io.IOException;
@@ -350,6 +351,10 @@ protected void runTest(boolean exp, String name, WithName test)
350351
checkShutdownSignal(AMQP.ACCESS_REFUSED, e);
351352
openConnection();
352353
openChannel();
354+
} catch (AlreadyClosedException e) {
355+
checkShutdownSignal(AMQP.ACCESS_REFUSED, e);
356+
openConnection();
357+
openChannel();
353358
}
354359
}
355360

0 commit comments

Comments
 (0)