1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +01:00

Fix PacketWriterTest: Expect also InterruptedException

which is thrown in case the queue was shut down.
This commit is contained in:
Florian Schmaus 2019-05-08 15:19:48 +02:00
parent 32429bcb9c
commit 68b7eb26f3

View file

@ -99,11 +99,11 @@ public class PacketWriterTest {
prematureUnblocked = true; prematureUnblocked = true;
} }
} }
catch (SmackException.NotConnectedException e) { catch (InterruptedException | SmackException.NotConnectedException e) {
// This is the exception we expect. // This is the exception we expect.
expectedThreadExceptionReference.set(e); expectedThreadExceptionReference.set(e);
} }
catch (BrokenBarrierException | InterruptedException e) { catch (BrokenBarrierException e) {
unexpectedThreadExceptionReference.set(e); unexpectedThreadExceptionReference.set(e);
} }