Skip to content

Commit

Permalink
Attempts to deflake postSpans_disconnectDuringBody (#3635)
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <adrian@tetrate.io>
  • Loading branch information
codefromthecrypt committed Dec 14, 2023
1 parent 5fde11f commit 876a215
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ void getTraces_storedViaPostVersion2(String mediaType, SpanBytesEncoder encoder)
// Zipkin didn't store the spans, as they shouldn't have been readable, due to disconnect
assertThat(zipkin.getTraces()).isEmpty();

// create a new connection pool to avoid flakey tests
client = new OkHttpClient();

// The failure shouldn't affect later requests
assertPostSpansV1Success(spans);
}
Expand Down

0 comments on commit 876a215

Please sign in to comment.