1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 02:27:58 +01:00

[sinttest] Remove unnecessary catch in UserTuneIntegrationTest

This commit is contained in:
Florian Schmaus 2021-12-13 20:50:56 +01:00
parent 819ed87a17
commit 33e8053258

View file

@ -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);
}