increase wait period

This commit is contained in:
Daniel Hung 2018-12-18 15:31:05 -08:00
parent 50ac3aed00
commit b035a6c45f
2 changed files with 5 additions and 5 deletions

View File

@ -26,11 +26,11 @@ const getDesc = (expectation, root) => () => {
if (closeMatches.length > 0) {
base.push('\nbut some calls were close');
closeMatches.forEach((call) => {
base.push(`\n - ${formatCall(call)}`)
base.push(`\n - ${formatCall(call)}`)
});
} else {
// .map(({args: [{path, method}, payload]}) => `${method || 'GET'} ${path} '${payload || ''}'`));
base.push(`\nbut no calls were anywhere close\n${KiteAPI.request.getCalls().map(c => {
base.push(`\nbut no calls were anywhere close\n${KiteAPI.request.getCalls().map(c => {
let [{path, method}, payload] = c.args;
method = method || 'GET';
@ -139,7 +139,7 @@ module.exports = ({expectation, not, root}) => {
buildContext(root),
this.env);
}
}, 300);
}, 3000);
if(not) {
return promise.then(() => {

View File

@ -46,7 +46,7 @@ module.exports = ({expectation, not, root}) => {
expectation.properties.method,
expectation.properties.body,
buildContext(root));
if (calls.length !== expectation.properties.count) {
throw new Error('fail');
}
@ -61,7 +61,7 @@ module.exports = ({expectation, not, root}) => {
return calls.length === expectation.properties.count;
}
}, 300)
}, 3000)
.catch(err => {
console.log(err);
throw err;