Skip to content

Commit 2d2cea9

Browse files
committed
tests: remove unnecessary print stacktrace
Signed-off-by: Maximillian Arruda <[email protected]>
1 parent 23d28f1 commit 2d2cea9

File tree

1 file changed

+2
-4
lines changed
  • jnosql-elasticsearch/src/test/java/org/eclipse/jnosql/databases/elasticsearch/communication

1 file changed

+2
-4
lines changed

jnosql-elasticsearch/src/test/java/org/eclipse/jnosql/databases/elasticsearch/communication/DocumentDatabase.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,9 @@ public static void clearDatabase(String index) {
6868
.isTrue();
6969
});
7070
} catch (Exception e) {
71-
if( e instanceof ElasticsearchException){
72-
e.printStackTrace();
73-
return;
71+
if( !(e instanceof ElasticsearchException)) {
72+
throw new RuntimeException(e);
7473
}
75-
throw new RuntimeException(e);
7674
}
7775
}
7876

0 commit comments

Comments
 (0)