title: Springboot WebFlux tests failing after upgrade to spring boot 2.2
body: <p>I have some Springboot integration tests which worked fine in Springboot 2.1 but now that I have upgraded to Springboot 2.2 they're failing. Using default spring-boot parent dependency management. Some failing tests which used to work are as simple as this example:</p>
  <pre><code>...
  @RunWith(SpringRunner.class)
  @SpringBootTest(
   webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
   properties = {&quot;spring.sleuth.enabled=false&quot;})
  @Import({AccountApiClient.class,...})
  @DirtiesContext
  @AutoConfigureStubRunner(stubsMode = StubRunnerProperties.StubsMode.CLASSPATH,
   ids = {&quot;my.org.com:account-service:+:stubs:9021&quot;},
   consumerName = &quot;AccountServiceV2&quot;,
   stubsPerConsumer = true)
  public class AccountsClientTest {
  
  @Autowired
  AccountService accountService;
  
  @Test
  public void verifyAccountsShouldReturnEmpty() {
      Mono&lt;List&lt;Accounts&gt;&gt; acc = accountService.getAccounts(new AccountId(ACC_ID));
      assertThat(acc.block(), hasSize(0));
   }
   ...
  </code></pre>
  <p>Before the upgrade, this test passes as expected but after the upgrade, it fails with the following error:</p>
  <pre><code>[ERROR] verifyAccountsShouldReturnEmpty  Time elapsed: 0.004 s  &lt;&lt;&lt; ERROR!
  reactor.core.Exceptions$ReactiveException: java.lang.AssertionError: Spring Context [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@7d605944, started on Tue Aug 18 10:00:09 CEST 2020, parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@a035db9] is not yet refreshed. This is unexpected. Reactor Context is [Context0{}] and name is [blocking]
  </code></pre>
  <p>I have many tests with similar behaviour after upgrading. It fails on line <code>assertThat(acc.block(), hasSize(0));</code></p>
  <p>What might be causing this?</p>
  <h2>Update</h2>
  <p>I've tried changing the test to use StepVerifier as suggested in comments but didn't work:</p>
  <pre><code>@Test
  public void verifyAccountsShouldReturnEmpty() {
    StepVerifier.create(
        accountService.getAccounts(new AccountId(ACC_ID)))
        .expectNext(Collections.emptyList())
        .verifyComplete();
  }
  </code></pre>
  <p>The end of the error just changed to: <code>parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@985b9f6] is not yet refreshed. This is unexpected. Reactor Context is [Context0{}] and name is [stepVerifier ]))</code> which seems the same issue as using block but now with StepVerifier.</p>
  <p>Thanks.</p>