[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
1 changed files with 3 additions and 7 deletions

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(); utm1.publishUserTune(data); // for the purpose of this test, this needs not be blocking/use publishAndWait();
// Wait for the data to be received. // Wait for the data to be received.
try { Object result = userTuneReceived.waitForResult(timeout);
Object result = userTuneReceived.waitForResult(timeout);
// Explicitly assert the success case. // Explicitly assert the success case.
Assertions.assertNotNull(result, "Expected to receive a PEP notification, but did not."); 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.");
}
} finally { } finally {
unregisterListener(utm2, userTuneListener); unregisterListener(utm2, userTuneListener);
} }