Skip to content

Commit 44a78a4

Browse files
committed
Accept failure on RPC client closing in test
Happens sometimes on CI. (cherry picked from commit 12adc87)
1 parent 12d1adb commit 44a78a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ public void rpcUnroutableWithMandatoryFlagShouldThrowUnroutableException() throw
137137
assertEquals(noWhereRoutingKey, e.getReturnMessage().getRoutingKey());
138138
assertEquals(content, new String(e.getReturnMessage().getBody()));
139139
}
140-
client.close();
140+
try {
141+
client.close();
142+
} catch (IOException e) {
143+
// OK
144+
}
141145
}
142146

143147
@Test

0 commit comments

Comments
 (0)