mirror of
https://github.com/kiteco/vscode-plugin.git
synced 2024-09-11 16:08:10 +03:00
increase wait period
This commit is contained in:
parent
50ac3aed00
commit
b035a6c45f
@ -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(() => {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user