0
我有以下功能測試。出於某種原因,get()調用總是最終得到一個java.util.concurrent.TimeoutException:在60000ms之後沒有收到響應。FunctionalTest中的WSRequest將最終超時
任何見解?此外,我嘗試從瀏覽器內部的相同的網址,它工作得很好。
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);
}
}