Skip to content

Commit 3aa3479

Browse files
committed
Merge branch '1.0' into 1.1
2 parents 877831e + fab6d7c commit 3aa3479

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

gulpfile.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,14 @@ gulp.task('all', function(cb){
131131
});
132132

133133
gulp.task('test', function(cb){
134-
runSequence('test-nodejs', 'test-browser', 'run-tck', cb);
134+
runSequence('test-nodejs', 'test-browser', 'run-tck', function (err) {
135+
if (err) {
136+
var exitCode = 2;
137+
console.log('[FAIL] test task failed - exiting with code ' + exitCode);
138+
return process.exit(exitCode);
139+
}
140+
return cb();
141+
});
135142
});
136143

137144
gulp.task('test-nodejs', ['nodejs'], function () {

src/v1/internal/ch-node.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ function storeFingerprint( serverId, knownHostsPath, fingerprint, cb ) {
8484
return cb(null);
8585
}
8686

87+
// we make the line as appended
88+
// ( 1 is more efficient to store than true because true is an oddball )
89+
_lockFingerprintFromAppending[serverId] = 1;
90+
8791
// If file doesn't exist, create full path to it
8892
try {
8993
fs.accessSync(knownHostsPath);

0 commit comments

Comments
 (0)