MCPcopy Create free account
hub / github.com/IBM/couchbackup / backupHttpError

Function backupHttpError

test/fatalerrors.js:60–69  ·  view source on GitHub ↗
(opts, errorName, errorCode)

Source from the content-addressed store, hash-verified

58}
59
60async function backupHttpError(opts, errorName, errorCode) {
61 const p = u.p(opts, { expectedBackupError: { name: errorName, code: errorCode } });
62
63 // Create a file and attempt a backup to it
64 const output = fs.createWriteStream('/dev/null');
65 return once(output, 'open')
66 .then(() => {
67 return testPromiseWithAssertNock(u.testBackup(p, 'fakenockdb', output));
68 });
69}
70
71async function restoreHttpError(opts, errorName, errorCode) {
72 const q = u.p(opts, { expectedRestoreError: { name: errorName, code: errorCode } });

Callers 1

fatalerrors.jsFile · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…