Skip to content

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

@rogerz

Description

@rogerz

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions