Skip to content

Commit

Permalink
increase timeout after creating mock server again
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Oct 2, 2024
1 parent 8b6e450 commit da449e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/appscript/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('api', () => {
},
});

await new Promise((resolve) => setTimeout(resolve, 5000));
await new Promise((resolve) => setTimeout(resolve, 10000));

// use the mock server's path that forces a random error
const result = await Clasp.run('setCredentials', {
Expand Down Expand Up @@ -175,7 +175,7 @@ describe('api', () => {
});

// waiting seems to be required here, or the mock server isn't used in time
await new Promise((resolve) => setTimeout(resolve, 5000));
await new Promise((resolve) => setTimeout(resolve, 10000));

// use the mock server's path that forces a non-random error
await Clasp.run('setCredentials', {
Expand Down Expand Up @@ -218,7 +218,7 @@ describe('api', () => {
},
});

await new Promise((resolve) => setTimeout(resolve, 5000));
await new Promise((resolve) => setTimeout(resolve, 10000));

// use the mock server's path that forces a non-random error
await Clasp.run('setCredentials', {
Expand Down

0 comments on commit da449e5

Please sign in to comment.