tests: Make the `helper.newPad()` callback optional

pull/4984/head
Richard Hansen 2021-03-25 16:08:50 -04:00
parent 27b35699ea
commit ec76a6548f
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ const helper = {};
helper.newPad = (opts, padName) => {
opts = Object.assign({
_retry: 0,
cb: (err) => { if (err != null) throw err; },
clearCookies: true,
}, typeof opts === 'function' ? {cb: opts} : opts);