Skip to content

Commit

Permalink
set higher timeout for no filter_limit test
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Feb 15, 2024
1 parent 98f0f82 commit 2a24768
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/appscript/data.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,14 @@ describe('data', () => {


it('should return all data when no filter limit is set', async () => {
await Clasp.setScriptProperties({}, true);
await Clasp.setScriptProperties({
MAX_ROWS_TO_FETCH_PER_REQUEST: '500',
}, true);

let result = await Clasp.run('getData', {
configParams: {
idsite: env.APPSCRIPT_TEST_IDSITE,
report: JSON.stringify({ apiModule: 'Actions', apiAction: 'getPageUrls' }),
filter_limit: 500,
},
dateRange: {
startDate: '2024-02-13',
Expand All @@ -317,9 +318,11 @@ describe('data', () => {
});

expect((result as any).rows.length).toHaveLength(1080);
});
}, 300000);

it('should fail gracefully when no dateRange is specified', async () => {
await Clasp.setScriptProperties({}, true);

await expect(async () => {
await Clasp.run('getData', {
configParams: {
Expand Down

0 comments on commit 2a24768

Please sign in to comment.