@cloudant/couchbackup
Advanced tools
Comparing version 2.0.0-SNAPSHOT.58 to 2.0.0-SNAPSHOT.59
@@ -168,3 +168,3 @@ // Copyright © 2017 IBM Corp. All rights reserved. | ||
backup.on('exit', function(code, signal) { | ||
backup.on('close', function(code, signal) { | ||
try { | ||
@@ -186,7 +186,12 @@ if (params.abort) { | ||
if (gzip) { | ||
gzip.on('exit', function(code) { | ||
callback(); | ||
gzip.on('close', function(code) { | ||
try { | ||
assert.equal(code, 0, `The compression should exit normally, got exit code ${code}.`); | ||
callback(); | ||
} catch (err) { | ||
callback(err); | ||
} | ||
}); | ||
} else { | ||
backup.on('exit', function(code) { | ||
backup.on('close', function(code) { | ||
callback(); | ||
@@ -258,3 +263,3 @@ }); | ||
restoreStream.pipe(restore.stdin); | ||
restore.on('exit', function(code) { | ||
restore.on('close', function(code) { | ||
try { | ||
@@ -261,0 +266,0 @@ assert.equal(code, 0, `The restore should exit normally, got exit code ${code}`); |
@@ -117,4 +117,6 @@ // Copyright © 2017 IBM Corp. All rights reserved. | ||
it('should backup and restore largedb1g', function(done) { | ||
// Allow up to 15 m for backup and restore of largedb1g | ||
u.timeoutFilter(this, 15 * 60); | ||
// Allow up to 30 m for backup and restore of largedb1g | ||
// This is a long time but when many builds run in parallel it can take a | ||
// while to get this done. | ||
u.timeoutFilter(this, 30 * 60); | ||
u.testDirectBackupAndRestore(params, 'largedb1g', this.dbName, done); | ||
@@ -163,4 +165,4 @@ }); | ||
it('should backup and restore largedb2g via a compressed file', function(done) { | ||
// Categorize as a 30 min test so it only gets run with the long run tests | ||
u.timeoutFilter(this, 30 * 60); | ||
// Categorize as a 60 min test so it only gets run with the long run tests | ||
u.timeoutFilter(this, 60 * 60); | ||
const compressedBackup = `./${this.fileName}`; | ||
@@ -167,0 +169,0 @@ params.compression = true; |
{ | ||
"name": "@cloudant/couchbackup", | ||
"version": "2.0.0-SNAPSHOT.58", | ||
"version": "2.0.0-SNAPSHOT.59", | ||
"description": "CouchBackup - command-line backup utility for Cloudant/CouchDB", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/cloudant/couchbackup", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179754
3203