Azurite icon indicating copy to clipboard operation
Azurite copied to clipboard

Running BlockBlobClient highlevel unit test with t2 Azure Storage SDK has an socket issue

Open zzhxiaofeng opened this issue 5 years ago • 1 comments

Azurite Version: v3.8.0

Issue Description: Run BlockBlobClient highlevel unit test with t2 Azure Storage SDK In Azurite, an socket issue is shown in the figure below: Annotation 2020-06-17 103855 Note: If disable keep alive when create blob service client, the socket issue will not happen. The modified code snippet is as following:

const serviceClient = new BlobServiceClient(
    baseURL,
    newPipeline(
      new StorageSharedKeyCredential(
        EMULATOR_ACCOUNT_NAME,
        EMULATOR_ACCOUNT_KEY
      ),
      {
        retryOptions: { maxTries: 1 },
        // Make sure socket is closed once the operation is done.
        keepAliveOptions: { enable: false }
      }
    )
);

Steps to reproduce: 1)Clone the repo from link. 2)Open Azurite folder with VS Code and run command npm i to install dependencies packages. 3)Run command npm run test to run all unit test.

Note: it does not happen at every time, it happens at some time. Please try more times.

Expected Behavior: Run highlevel unit test successfully.

zzhxiaofeng avatar Jul 30 '20 01:07 zzhxiaofeng

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 11:04 stale[bot]