Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: timeout of "2000" reached when there is an index.html #78

Open
rogerz opened this issue May 31, 2015 · 0 comments
Open

Error: timeout of "2000" reached when there is an index.html #78

rogerz opened this issue May 31, 2015 · 0 comments

Comments

@rogerz
Copy link

rogerz commented May 31, 2015

When index.html is removed, all test cases passed

When there is an index.html, timeout error

➜  particle-by-resize git:(master) ✗ DEBUG=* make test
  koa-static static "/Users/zhangyujun/Workspace/particle-by-resize" {"defer":true} +0ms
  koa:application use serve +2ms
  koa-route GET /duotest -> /^\/duotest\/?$/i +2ms
  koa:application use - +0ms
  koa-route GET /duotest.js -> /^\/duotest\.js\/?$/i +0ms
  koa:application use - +0ms
  duo-test started localhost:62820 +6ms
  duo-test test on 1 browsers +0ms
  duo-test:browser phantomjs: webdriver running on 8910 +1s
  duo-test:browser phantomjs: connected +32ms
  duo-test:browser phantomjs: get http://localhost:62820/test/?__id__=phantomjs +1ms
  koa-send send "/test/" {"defer":true,"root":"/Users/zhangyujun/Workspace/particle-by-resize","index":"index.html"} +18ms
  koa-send send "/node_modules/duo-test/node_modules/mocha/mocha.css" {"defer":true,"root":"/Users/zhangyujun/Workspace/particle-by-resize","index":"index.html"} +19ms
  koa-send send "/node_modules/duo-test/node_modules/mocha/mocha.js" {"defer":true,"root":"/Users/zhangyujun/Workspace/particle-by-resize","index":"index.html"} +2ms
  koa-send send "/build.js" {"defer":true,"root":"/Users/zhangyujun/Workspace/particle-by-resize","index":"index.html"} +0ms

  Error: timeout of "2000" reached
    at null._onTimeout (/Users/zhangyujun/.nvm/versions/node/v0.12.3/lib/node_modules/duo-test/node_modules/co-timeout/index.js:28:17)
    at Timer.listOnTimeout (timers.js:110:15)

content of index.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>tests</title>
  <link rel="stylesheet" media="all" href="../node_modules/duo-test/node_modules/mocha/mocha.css">
</head>
<body>
  <div id="mocha"><p><a href=".">Index</a></p></div>
  <div id="messages"></div>
  <div id="fixtures"></div>
  <script src="../node_modules/duo-test/node_modules/mocha/mocha.js"></script>
  <script>mocha.setup('bdd')</script>
  <script src="../build.js"></script>
  <script>mocha.run();</script>
</body>
</html>
rogerz added a commit to rogerz/particle-by-resize that referenced this issue May 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant