mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Clear VCAP_APPLICATION after tests
So that other CF tests do not fail.
This commit is contained in:
parent
95ee145281
commit
cc8ecb6ff5
@ -19,6 +19,7 @@ package org.springframework.boot.actuate.endpoint;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
@ -45,6 +46,12 @@ public class EnvironmentEndpointTests extends AbstractEndpointTests<EnvironmentE
|
||||
super(Config.class, EnvironmentEndpoint.class, "env", true, "endpoints.env");
|
||||
}
|
||||
|
||||
@Override
|
||||
@After
|
||||
public void close() {
|
||||
System.clearProperty("VCAP_SERVICES");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void invoke() throws Exception {
|
||||
assertThat(getEndpointBean().invoke()).isNotEmpty();
|
||||
|
Loading…
Reference in New Issue
Block a user