阅读背景:

Django测试服务器和开发服务器间歇性地难以获取外部资源。

来源:互联网 

I am working on a Django app on Ubuntu 16.04, and recently noticed that functional tests using selenium in the test suite for my Django app will sometimes fail (timeout). These are tests that previously passed, and no code has been changed. When this happens, it is seemingly random which tests will fail; on one run test A will fail, on the next run test B will fail and A will pass. However, it seems like what usually fails is calls to outside web services (Google Maps API calls), or loading external libraries (loading Font Awesome or Bootstrap through a CDN) - selenium will timeout waiting for these resources to load.I am working on a Django app on Ubuntu 16.04, a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: