Skip to content

Commit a091944

Browse files
Polish
1 parent bd8a1fd commit a091944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/common/src/main/java/org/springframework/cloud/sleuth/instrument/messaging/TraceFunctionAroundWrapperTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public abstract class TraceFunctionAroundWrapperTests {
4646
public void test_tracing_with_function() {
4747
try (ConfigurableApplicationContext context = new SpringApplicationBuilder(configuration(),
4848
SampleConfiguration.class).run("--logging.level.org.springframework.cloud.function=DEBUG",
49-
"--spring.main.lazy-initialization=true");) {
49+
"--spring.main.lazy-initialization=true", "--server.port=0");) {
5050
TestSpanHandler spanHandler = context.getBean(TestSpanHandler.class);
5151
assertThat(spanHandler.reportedSpans()).isEmpty();
5252
FunctionCatalog catalog = context.getBean(FunctionCatalog.class);

0 commit comments

Comments
 (0)