Skip to content

[Storage] Add more tests covering progress events#6428

Merged
jeremymeng merged 4 commits into
Azure:masterfrom
jeremymeng:stage-block-onprogress
Dec 10, 2019
Merged

[Storage] Add more tests covering progress events#6428
jeremymeng merged 4 commits into
Azure:masterfrom
jeremymeng:stage-block-onprogress

Conversation

@jeremymeng
Copy link
Copy Markdown
Member

@jeremymeng jeremymeng commented Dec 5, 2019

Related to #6352.

@jeremymeng jeremymeng added Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files) labels Dec 5, 2019
@jeremymeng jeremymeng added this to the [2020] January milestone Dec 5, 2019
Comment thread sdk/storage/storage-blob/src/Clients.ts Outdated
@jeremymeng jeremymeng changed the title [Storage] Enable more progress report callbacks [Storage] Add more tests covering progress events Dec 6, 2019
@jeremymeng jeremymeng self-assigned this Dec 9, 2019
@jeremymeng jeremymeng force-pushed the stage-block-onprogress branch from b7752b8 to e21d82b Compare December 9, 2019 21:46
@XiaoningLiu
Copy link
Copy Markdown
Member

@jiacfan Any comments here?


const content = "Hello World!";
await appendBlobClient.appendBlock(content, content.length, {
onProgress: () => {}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: The PR enhanced the coverage, and is a great work! One question is, most of the test use empty callbacks, is that by design? Possibly, we may change at least one of them to be a useful callback, so we can validate the callback itself works.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even the body is empty, the callback is invoked. I've verified that before the fix these test failed.

Copy link
Copy Markdown
Member

@jiacfan jiacfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jeremymeng jeremymeng merged commit 1ff3be6 into Azure:master Dec 10, 2019
@jeremymeng jeremymeng deleted the stage-block-onprogress branch December 10, 2019 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants