Skip to content

Commit

Permalink
Increases exception verbosity during tests
Browse files Browse the repository at this point in the history
See #3197
  • Loading branch information
Adrian Cole committed Sep 16, 2020
1 parent bae2f63 commit 3e7a9d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public class ITElasticsearchHealthCheck {

static final SettableHealthChecker server1Health = new SettableHealthChecker(true);

static {
// Gives better context when there's an exception such as AbortedStreamException
System.setProperty("com.linecorp.armeria.verboseExceptions", "always");
}

@ClassRule public static ServerRule server1 = new ServerRule() {
@Override protected void configure(ServerBuilder sb) {
sb.service("/", (ctx, req) -> VERSION_RESPONSE.toHttpResponse());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
import static zipkin2.elasticsearch.integration.ElasticsearchStorageExtension.index;

abstract class ITElasticsearchStorage {
static {
// Gives better context when there's an exception such as AbortedStreamException
System.setProperty("com.linecorp.armeria.verboseExceptions", "always");
}

abstract ElasticsearchStorageExtension backend();

Expand Down

0 comments on commit 3e7a9d5

Please sign in to comment.