mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 10:37:59 +01:00
Fix PacketWriterTest: Expect also InterruptedException
which is thrown in case the queue was shut down.
This commit is contained in:
parent
32429bcb9c
commit
68b7eb26f3
1 changed files with 2 additions and 2 deletions
|
@ -99,11 +99,11 @@ public class PacketWriterTest {
|
|||
prematureUnblocked = true;
|
||||
}
|
||||
}
|
||||
catch (SmackException.NotConnectedException e) {
|
||||
catch (InterruptedException | SmackException.NotConnectedException e) {
|
||||
// This is the exception we expect.
|
||||
expectedThreadExceptionReference.set(e);
|
||||
}
|
||||
catch (BrokenBarrierException | InterruptedException e) {
|
||||
catch (BrokenBarrierException e) {
|
||||
unexpectedThreadExceptionReference.set(e);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue