Remove verbose logging in test

This commit is contained in:
Dave Syer
2017-10-05 09:21:48 +01:00
parent 8f9b553ae8
commit ff00aa8eee

View File

@@ -52,8 +52,7 @@ import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.util.ObjectUtils;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = TestConfiguration.class)
// , properties = "logging.level.org.springframework.cloud.context.scope.refresh.RefreshScopeConfigurationScaleTests=DEBUG")
@SpringBootTest(classes = TestConfiguration.class, properties = "logging.level.org.springframework.cloud.context.scope.refresh.RefreshScopeConfigurationScaleTests=DEBUG")
public class RefreshScopeConfigurationScaleTests {
private static Log logger = LogFactory
@@ -75,6 +74,8 @@ public class RefreshScopeConfigurationScaleTests {
@DirtiesContext
public void testConcurrentRefresh() throws Exception {
scope.setEager(false);
// overload the thread pool and try to force Spring to create too many instances
int n = 80;
TestPropertyValues.of("message=Foo").applyTo(environment);