Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed Oct 19, 2023
1 parent 4a8f816 commit 3d12d6e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ protected void configure(ServerBuilder sb) {
new ServerExtension() {
@Override
protected void configure(ServerBuilder sb) {
sb.service("/", (ctx, req) -> webClient(server1).execute(req));
sb.service("/", (ctx, req) -> createWebClient(server1).execute(req));
}
};

private static WebClient webClient(ServerExtension server) {
private static WebClient createWebClient(ServerExtension server) {
return WebClient.builder(server.httpUri()).build();
}

@Test
void testHello() throws Exception {
// verify that spans are created and context is propagated
AggregatedHttpResponse result = webClient(server2).get("/").aggregate().get();
AggregatedHttpResponse result = createWebClient(server2).get("/").aggregate().get();
assertThat(result.contentAscii()).isEqualTo("hello");

testing.waitAndAssertTraces(
Expand Down

0 comments on commit 3d12d6e

Please sign in to comment.