0

다음 기능 테스트가 있습니다. 어떤 이유로 get() 호출은 항상 java.util.concurrent.TimeoutException을 얻습니다. 60000ms 후에 응답이 수신되지 않습니다.FunctionalTest의 WSRequest가 종료됩니다.

통찰력이 있으십니까? 또한, 내 브라우저에서 동일한 URL을 시도, 잘 작동합니다.

public class MyTest extends FunctionalTest { 
    @Before 
    public void setup() { 
     Fixtures.loadYaml("data.yml"); 
    } 

    @Test 
    public void testIndex() { 
     HttpResponse response = WS.url("http://localhost:9001/tags/index").get(); 
     assertEquals(response.getStatus(), (Integer)200); 
    } 
} 

답변

1

추가하기 문제

퍼센트의 test.play.pool = 2

를 해결하는 것입니다 application.conf에 다음과
관련 문제