Timeout on blocking read for 5000 MILLISECONDS in Spring WEBLUX

后端 未结 2 1370
一整个雨季
一整个雨季 2020-12-31 07:36

i wrote a test for Handler (spring weblux)

test:

@Test
    public void checkServicesHandlerTest(){
      Request request = new Request();
        req         


        
2条回答
  •  盖世英雄少女心
    2020-12-31 08:22

    You can override the timeout by using the annotation @AutoConfigureWebTestClient(timeout = "36000").

    for example :

    @AutoConfigureWebTestClient(timeout = "36000")
    @SpringBootTest
    class MyTestClass {
    }
    

提交回复
热议问题