Skip to content

Commit f2cb04a

Browse files
sethk4783Yaminim07SethK
authored
fix: Additional test case (#544)
* Redundant test cases removed as per new chunk size calculation * fix: Change development deployment branch --------- Co-authored-by: Yaminim <yaminim@celestialsys.com> Co-authored-by: SethK <seth.k@filetstack.com>
1 parent c48127f commit f2cb04a

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

.github/workflows/deploy_beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: filestack-js-beta
22
on:
33
push:
4-
branches: [ development ]
4+
branches: [ develop ]
55
jobs:
66
build:
77
runs-on: ubuntu-latest

src/lib/api/upload/uploaders/s3.spec.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -723,37 +723,6 @@ describe('Api/Upload/Uploaders/S3', () => {
723723
part: 1,
724724
});
725725

726-
const chunk2 = await testFile.getChunkByMetadata(firstPartMetadata, chunkSize / 2, chunkSize);
727-
728-
expect(mockUpload).toHaveBeenNthCalledWith(3, {
729-
md5: chunk2.md5,
730-
size: chunk2.size,
731-
apikey: testApikey,
732-
region: mockRegion,
733-
store: {
734-
location: DEFAULT_STORE_LOCATION,
735-
},
736-
fii: true,
737-
uri: mockedUri,
738-
upload_id: mockUploadId,
739-
offset: chunkSize,
740-
part: 1,
741-
});
742-
});
743-
744-
it('should exit when chunk size reaches min chunk size', async () => {
745-
nock.removeInterceptor(interceptorS3);
746-
scope.put('/fakes3').reply((url, _, cb) => cb('Error'));
747-
748-
const u = new S3Uploader({});
749-
u.setUrl(testHost);
750-
u.setApikey(testApikey);
751-
u.setTimeout(100);
752-
u.setUploadMode(UploadMode.INTELLIGENT);
753-
754-
u.addFile(getSmallTestFile());
755-
const res = await u.execute();
756-
expect(res[0].status).toEqual('Failed');
757726
});
758727

759728
it('should exit on 4xx errors', async () => {

0 commit comments

Comments
 (0)