fix: exclude gateway auto-config in TSF header decode test

Prevent servlet-based SpringBootTest from hitting MvcFoundOnClasspathException, which triggered FailedEventApplicationListener.System.exit(0) and aborted the Surefire fork.

Co-authored-by: Cursor <cursoragent@cursor.com>
pull/1820/head
evelynwei 2 days ago
parent 224fd7790b
commit 104718775f

@ -48,7 +48,8 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironmen
properties = {"spring.config.location = classpath:application-test.yml",
"spring.main.web-application-type = servlet",
"spring.cloud.gateway.enabled = false",
"spring.cloud.tencent.metadata.tsf-header-compatible = true"})
"spring.cloud.tencent.metadata.tsf-header-compatible = true",
"spring.autoconfigure.exclude=org.springframework.cloud.gateway.config.GatewayAutoConfiguration,org.springframework.cloud.gateway.config.GatewayClassPathWarningAutoConfiguration,org.springframework.cloud.gateway.config.GatewayMetricsAutoConfiguration"})
public class DecodeTransferTsfHeaderCompatibleTest {
@Autowired

Loading…
Cancel
Save