Broken Pipe Error while running django-test with selenium

前端 未结 1 964
逝去的感伤
逝去的感伤 2020-12-30 11:03

while running django tests with selenium (no remote, no xvfb), I always get the following exception:

Creating test database for alias \'default\'...

Traceba         


        
1条回答
  •  自闭症患者
    2020-12-30 11:35

    Make sure that the browser requesting the page is waiting for the response.

    If i remember correctly there is the selenium_client.implicitly_wait(sec) and selenium_client.set_page_load_timeout(sec) commands for that, make sure you are using it.

    If not the server will try to write to a pipe that is broken because the browser close the connection before the response was sent.

    0 讨论(0)
提交回复
热议问题