mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Work around MockMvc bug (SPR-13079) that has only been fixed in 4.2
See gh-4098
This commit is contained in:
parent
b8b4ea489e
commit
6387f36efa
@ -228,6 +228,8 @@ public class MetricFilterAutoConfigurationTests {
|
||||
.andExpect(request().attribute(attributeName, is(notNullValue())))
|
||||
.andReturn();
|
||||
latch.countDown();
|
||||
// Work around SPR-13079 which has not been fixed in 4.1.x
|
||||
result.getAsyncResult();
|
||||
mvc.perform(asyncDispatch(result)).andExpect(status().isCreated())
|
||||
.andExpect(request().attribute(attributeName, is(nullValue())));
|
||||
verify(context.getBean(CounterService.class)).increment("status.201.create");
|
||||
|
Loading…
Reference in New Issue
Block a user