Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Asset manager performance #639

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions e2e/node/basic/assets.test.ts
Expand Up @@ -51,8 +51,6 @@ describe('assets', () => {
const assetManager = new AssetManager({
canisterId,
agent: await agent,
maxSingleFileSize: 1900,
maxChunkSize: 1900,
});
const readable = randomBytesReadable(fileName, length);
const key = await assetManager.store(readable);
Expand Down Expand Up @@ -86,9 +84,9 @@ describe('assets', () => {
}
});

it('store, get and delete 1KB asset (single chunk)', () => testRandomBytes('1KB.bin', 1000));
it('store, get and delete 1MB asset (single chunk)', () => testRandomBytes('1MB.bin', 1000000));

it('store, get and delete 3KB asset (multiple chunk)', () => testRandomBytes('3KB.bin', 3000));
it('store, get and delete 3MB asset (multiple chunk)', () => testRandomBytes('3MB.bin', 3000000));

it('batch process assets and verify asset list', async () => {
const assetManager = new AssetManager({ canisterId, agent: await agent });
Expand Down