Skip to content

Commit

Permalink
Fix latest dep tests (#9892)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Nov 16, 2023
1 parent 2bcae0b commit dedfc20
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies {
implementation(project(":instrumentation:reactor:reactor-3.1:library"))

testImplementation(project(":testing-common"))
testImplementation("org.springframework:spring-test:6.0.0")
testLibrary("org.springframework:spring-test:6.0.0")
}

otelJava {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class SpringWebInstrumentationTest extends AbstractHttpClientTest<HttpEnt
static RestTemplate restTemplate;

@BeforeAll
@SuppressWarnings("PreferJavaTimeOverload")
static void setUp() {
SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory();
requestFactory.setConnectTimeout((int) CONNECTION_TIMEOUT.toMillis());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ dependencies {
testLibrary("org.springframework.boot:spring-boot-starter-webflux:2.4.0")
testLibrary("org.springframework.boot:spring-boot-starter-test:2.4.0")
testLibrary("org.springframework.boot:spring-boot-starter-reactor-netty:2.4.0")
// can be remove after starter is update to depend on spring 6.1
latestDepTestLibrary("org.springframework:spring-context:+")
}

val latestDepTest = findProperty("testLatestDeps") as Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enum WebfluxServerHttpAttributesGetter

@Override
public String getHttpRequestMethod(ServerWebExchange request) {
return request.getRequest().getMethodValue();
return request.getRequest().getMethod().name();
}

@Override
Expand Down

0 comments on commit dedfc20

Please sign in to comment.