Permalink
Browse files

test: remove timing dependent features

  • Loading branch information...
1 parent 75df612 commit 20012bb94ec77c0359a4fa3634c39e0575ed9778 @indutny committed Feb 19, 2013
Showing with 2 additions and 6 deletions.
  1. +1 −3 test/simple/test-tls-over-http-tunnel.js
  2. +1 −3 test/simple/test-tls-session-cache.js
@@ -34,7 +34,6 @@ var https = require('https');
var proxyPort = common.PORT + 1;
var gotRequest = false;
-var errorCount = 0;
var key = fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem');
var cert = fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem');
@@ -164,12 +163,11 @@ proxy.listen(proxyPort, function() {
server.close();
});
}).on('error', function() {
- errorCount++;
+ // Just ignore
}).end();
}
});
process.on('exit', function() {
assert.ok(gotRequest);
- assert.equal(errorCount, 1);
});
@@ -50,12 +50,11 @@ function doTest() {
requestCert: true
};
var requestCount = 0;
- var errorCount = 0;
var session;
var server = tls.createServer(options, function(cleartext) {
cleartext.on('error', function() {
- errorCount++;
+ // Just ignore
});
++requestCount;
cleartext.end();
@@ -98,6 +97,5 @@ function doTest() {
// initial request + reconnect requests (5 times)
assert.equal(requestCount, 6);
- assert.equal(errorCount, 4);
});
}

0 comments on commit 20012bb

Please sign in to comment.