Retry final teardown
This commit is contained in:
Родитель
d49ab22d90
Коммит
289de77d48
|
@ -131,17 +131,11 @@ class E2ETest {
|
|||
@AfterAll
|
||||
public static void tearDown() {
|
||||
try {
|
||||
queryClient.executeToJsonResult(databaseName, String.format(".drop table %s ifexists", tableName));
|
||||
new ExponentialRetry<DataServiceException, DataClientException>(2).execute(attempt -> queryClient.execute(databaseName, String.format(".drop table %s ifexists", tableName)));
|
||||
ingestClient.close();
|
||||
managedStreamingIngestClient.close();
|
||||
} catch (Exception ex) {
|
||||
try {
|
||||
queryClient.executeToJsonResult(databaseName, String.format(".drop table %s ifexists", tableName));
|
||||
ingestClient.close();
|
||||
managedStreamingIngestClient.close();
|
||||
} catch (Exception ex2) {
|
||||
Assertions.fail("Failed to drop table", ex2);
|
||||
}
|
||||
Assertions.fail("Failed to drop table", ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче