This commit is contained in:
asafmahlev 2024-06-03 16:42:23 +03:00
Родитель d49ab22d90
Коммит 289de77d48
1 изменённых файлов: 2 добавлений и 8 удалений

Просмотреть файл

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