WebApi
WebApi copied to clipboard
`CRUDEntitySetShouldWork` test fails intermittently
The test CRUDEntitySetShouldWork fails intermittently due to the use of a random number generator.
Assemblies affected
Due to the nature of the random number generator, it is possible that the issue remains, but the repro doesn't work based on future commits, but this issue is definitely present for commit 5eb077d9a1d35e40005d4d86682cbd249d0ed819.
Reproduce steps
Update the test to use 20220235 as the seed for the random number generator to receive an unexpected exception:
Microsoft.OData.Client.DataServiceClientException : {"error":{"code":"","message":"An error has occurred.","innererror":{"message":"Cannot write the value 'null' in top level property; return 204 instead."
Expected result
The test should pass.
Actual result
The test fails with the above unexpected exception.
Additional detail
I will send a PR to begin logging to seed used when a random number generator is necessary for a test so that we can expedite future investigations.