mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 10:37:59 +01:00
[sinttest] Remove unnecessary catch in UserTuneIntegrationTest
This commit is contained in:
parent
819ed87a17
commit
33e8053258
1 changed files with 3 additions and 7 deletions
|
@ -91,14 +91,10 @@ public class UserTuneIntegrationTest extends AbstractSmackIntegrationTest {
|
|||
utm1.publishUserTune(data); // for the purpose of this test, this needs not be blocking/use publishAndWait();
|
||||
|
||||
// Wait for the data to be received.
|
||||
try {
|
||||
Object result = userTuneReceived.waitForResult(timeout);
|
||||
Object result = userTuneReceived.waitForResult(timeout);
|
||||
|
||||
// Explicitly assert the success case.
|
||||
Assertions.assertNotNull(result, "Expected to receive a PEP notification, but did not.");
|
||||
} catch (TimeoutException e) {
|
||||
Assertions.fail("Expected to receive a PEP notification, but did not.");
|
||||
}
|
||||
// Explicitly assert the success case.
|
||||
Assertions.assertNotNull(result, "Expected to receive a PEP notification, but did not.");
|
||||
} finally {
|
||||
unregisterListener(utm2, userTuneListener);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue