added additional logging for afterTest
This commit is contained in:
parent
171f4ed489
commit
ed735f609e
@ -29,7 +29,6 @@ import org.apache.http.HttpStatus;
|
|||||||
import org.awaitility.Awaitility;
|
import org.awaitility.Awaitility;
|
||||||
import org.hamcrest.Matcher;
|
import org.hamcrest.Matcher;
|
||||||
import org.hibernate.exception.ConstraintViolationException;
|
import org.hibernate.exception.ConstraintViolationException;
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
@ -359,6 +358,10 @@ public abstract class AbstractWebTest extends AbstractInMemoryStorageTest {
|
|||||||
try {
|
try {
|
||||||
status = doDelete("/api/tenant/" + tenantId.getId().toString())
|
status = doDelete("/api/tenant/" + tenantId.getId().toString())
|
||||||
.andReturn().getResponse().getStatus();
|
.andReturn().getResponse().getStatus();
|
||||||
|
if (status != HttpStatus.SC_OK) {
|
||||||
|
log.warn("Tenant deletion failed, tenantId: {}", tenantId.getId().toString());
|
||||||
|
Thread.sleep(1000L);
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user