test(retry): decouple querying retry_test state from test success
when debugging a failing test, the retry_test state will now be queried allowing for its presence to show in request logs to aid debugging.
@@ -101,10 +101,12 @@ final class RetryTestFixture implements TestRule {
} finally {
LOGGER.fine("Verifying end state of retry_test resource...");
try {
- if (testSuccess && retryTest != null) {
+ if (retryTest != null) {
RetryTestResource postTestState = testBench.getRetryTest(retryTest);
+ if (testSuccess) {
assertTrue("expected completed to be true, but was false", postTestState.completed);
}
+ }
} finally {
LOGGER.fine("Verifying end state of retry_test resource complete");
if ((shouldCleanup(testSuccess, testSkipped)) && retryTest != null) {
