A repro for issue Azure/azure-cosmos-dotnet-v3#1067 . It was based on the CosmosDB SDK v3 3.4.1
-
- "CosmosdbHang-endpoint"
-
- "CosmosdbHang-key"
-
- "CosmosdbHang-databaseId"
- Start single test, for example
A._1
. - It should finish successfully
- Run all tests
- Tests should start running in parallel.
- Each of them should finish in few seconds.
- Unfortunately, they hang during the startup and none of the tests finishes.
- Stop the tests execution, by force if needed
- Disable parallel execution by opening
xunit.runner.json
and changingparallelizeTestCollections
tofalse
- Run all tests again. They should all be successful.
- Checkout branch which has the same code logic, but SDK V2. It's called
sdkV2
. - Run all tests in parallel for SDK V2. They should all be successful.
- Create empty file called
.env
in the root of the repository - Add credentials to the database to the new file. It should looks like:
CosmosdbHang-endpoint=XXX
CosmosdbHang-key=YYY
CosmosdbHang-databaseId=ZZZ
- Call
./build.sh
. It will build a docker image - Call
./run.sh
, which will start docker container. It has adocker test
set as an entry point, so the test runner should start intermediately. - Test execution should hang. Wait max 60 second. You shoudn't see any progress
- Disable parallel execution by opening
xunit.runner.json
and changingparallelizeTestCollections
tofalse
- Repeat step 3 and 4
- Tests should finish successfully in approximately 25 seconds.