Skip to content

Commit

Permalink
update timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jun 19, 2024
1 parent 755afc4 commit ccadbb3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion examples/large_files/test/auto_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function generateFiles(): Test {
async () => {
await generateTestFileOfSize(size, units);
},
5 * 60 * 1_000
10 * 60 * 1_000
);
}
);
Expand Down
38 changes: 21 additions & 17 deletions examples/large_files/test/manual_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function manualTests(origin: string): Test {
async () => {
await generateTestFileOfSize(size, units, 'manual');
},
5 * 60 * 1_000
10 * 60 * 1_000
);
}
);
Expand All @@ -29,24 +29,28 @@ export function manualTests(origin: string): Test {
'initial manual upload of auto files',
(size, units) => {
const fileName = getAutoGeneratedFileName(size, units);
it('manually uploads files via azle command', async () => {
execSync(
`npx azle upload-assets backend ${join(
'assets',
'manual',
fileName
)} assets/test150MiB`,
{
stdio: 'inherit'
}
);
it(
'manually uploads files via azle command',
async () => {
execSync(
`npx azle upload-assets backend ${join(
'assets',
'manual',
fileName
)} assets/test150MiB`,
{
stdio: 'inherit'
}
);

const response = await fetch(
`${origin}/exists?path=assets/${fileName}`
);
const response = await fetch(
`${origin}/exists?path=assets/${fileName}`
);

expect(await response.json()).toBe(true);
});
expect(await response.json()).toBe(true);
},
10 * 60 * 1_000
);
}
);

Expand Down

0 comments on commit ccadbb3

Please sign in to comment.