Skip to content

Commit

Permalink
test: fix up indentation, replace tabs with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Jul 10, 2013
1 parent b3b8e74 commit 8a65df9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/simple/test-repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function error_test() {
{ client: client_unix, send: '.1234',
expect: '0.1234' },
// Floating point expressions are not interpreted as REPL commands
{ client: client_unix, send: '.1+.1',
{ client: client_unix, send: '.1+.1',
expect: '0.2' },
// Can parse valid JSON
{ client: client_unix, send: 'JSON.parse(\'{"valid": "json"}\');',
Expand Down
14 changes: 7 additions & 7 deletions test/simple/test-tls-hello-parser-failure.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ var server = tls.createServer(options, function(c) {

var once = false;

var writeAgain = setTimeout(function() {
client.write(bonkers);
});
var writeAgain = setTimeout(function() {
client.write(bonkers);
});

client.on('error', function(err) {
if (!once) {
clearTimeout(writeAgain);
clearTimeout(writeAgain);
once = true;
client.destroy();
server.close();
}
});

client.on('close', function (hadError) {
assert.strictEqual(hadError, true, 'Client never errored');
});
client.on('close', function (hadError) {
assert.strictEqual(hadError, true, 'Client never errored');
});
});

0 comments on commit 8a65df9

Please sign in to comment.