Fixed typos in tests and Error messages
This commit is contained in:
Родитель
bc9e9625d9
Коммит
a1b7084089
|
@ -95,7 +95,7 @@ async function UploadSeekableBlobToBlockBlob(
|
|||
options.maxSingleShotSize > BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES
|
||||
) {
|
||||
throw new RangeError(
|
||||
`parallelismThreshold option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`
|
||||
`maxSingleShotSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ async function uploadResetableStreamToBlockBlob(
|
|||
options.maxSingleShotSize > BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES
|
||||
) {
|
||||
throw new RangeError(
|
||||
`parallelismThreshold option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`
|
||||
`maxSingleShotSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ describe("Highelvel", () => {
|
|||
assert.equal(uploadedString, downloadedString);
|
||||
});
|
||||
|
||||
it("uploadBrowserDataToBlockBlob should success when blob < BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES and configed parallism threshold", async () => {
|
||||
it("uploadBrowserDataToBlockBlob should success when blob < BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES and configured maxSingleShotSize", async () => {
|
||||
await uploadBrowserDataToBlockBlob(Aborter.none, tempFile2, blockBlobURL, {
|
||||
blockSize: 512 * 1024,
|
||||
maxSingleShotSize: 0
|
||||
|
|
|
@ -114,7 +114,7 @@ describe("Highlevel", () => {
|
|||
assert.ok(downloadedData.equals(uploadedData));
|
||||
});
|
||||
|
||||
it("uploadFileToBlockBlob should success when blob < BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES and configed parallism threshold", async () => {
|
||||
it("uploadFileToBlockBlob should success when blob < BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES and configured maxSingleShotSize", async () => {
|
||||
await uploadFileToBlockBlob(Aborter.none, tempFileSmall, blockBlobURL, {
|
||||
maxSingleShotSize: 0
|
||||
});
|
||||
|
|
|
@ -6,7 +6,7 @@ import {
|
|||
import { InjectorPolicy, Injector } from "./InjectorPolicy";
|
||||
|
||||
/**
|
||||
* InjectorPolicyFactory is a factory class inject customized errors for retry policy testing.
|
||||
* InjectorPolicyFactory is a factory class which injects customized errors for retry policy testing.
|
||||
*
|
||||
* @export
|
||||
* @class InjectorPolicyFactory
|
||||
|
|
Загрузка…
Ссылка в новой задаче