couchbaselabs / cblite-tests

tests for mobile servers, clients, and sync interop
5 stars 0 forks source link

All tests passing against android #14

Closed tleyden closed 10 years ago

tleyden commented 10 years ago

So far, I've had to make the following concessions to get:

with 100% passing against Android. (I have not tried running the other functional tests yet)

var httpProxy = require('http-proxy');

//
// Create a proxy server with custom application logic
//
httpProxy.createServer(function (req, res, proxy) {
  console.log(req.path)
  proxy.proxyRequest(req, res, {
      host: 'localhost',
      port: 5984
    });
}).listen(8080);

Goal

Get all tests passing on Android with the master branch of cblite-tests.

This might require some scalability enhancements of LiteServAndroid, as well as some test re-working. For example, after discussing with @jchris about it, there are currently "aggregate timeouts, so you get like 20 seconds to load all 100 docs", which may not actually make sense in this kind of test.

andreibaranouski commented 10 years ago

related timeout issues has been fixed

tleyden commented 10 years ago

Glad we can finally close this out.

Btw, can you give any details regarding how timeout issues were fixed?

andreibaranouski commented 10 years ago

there are some points here:

  1. many long-running tests use now new added param (TAP_TIMEOUT in seconds)
  2. replace .times( to .timesSeries( https://github.com/couchbaselabs/cblite-tests/commit/9ff7033e6b3bb71adbbbf96fd0ea011d4229e27e
  3. set process.setMaxListeners(2000) https://github.com/couchbaselabs/cblite-tests/commit/ccf3c7fb3cbe08aa3e5d89734b9efea1732fa0ad

but seems like the second commit could be reverted to speed up test runs when the third has been applied