Skip to content

Commit

Permalink
fixing vertx client test
Browse files Browse the repository at this point in the history
  • Loading branch information
thugrock7 committed Sep 4, 2024
1 parent 454379f commit ac63218
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,15 @@ public void postJson_write_end_string() throws TimeoutException, InterruptedExce

TEST_WRITER.waitForTraces(1);
List<List<Span>> traces =
TEST_WRITER.waitForSpans(1, span -> span.getKind().equals(Span.SpanKind.SPAN_KIND_SERVER));
TEST_WRITER.waitForSpans(
1,
span ->
!span.getKind().equals(Span.SpanKind.SPAN_KIND_CLIENT)
|| span.getAttributesList().stream()
.noneMatch(
keyValue ->
keyValue.getKey().equals("http.url")
&& keyValue.getValue().getStringValue().contains("/echo")));
Assertions.assertEquals(1, traces.size(), String.format("was: %d", traces.size()));
Span clientSpan = traces.get(0).get(0);
Assertions.assertEquals(
Expand Down

0 comments on commit ac63218

Please sign in to comment.