Open HuiSou opened 2 months ago
more information on thread
Please could you share a code reproduction? This seems very specific to the code you've written so I'd need to see that really.
@adamrodger big thanks for taking a look!, however the problem is in the internal code at my company, but I can setup some PoC to demostrate how it happened later today
btw, as far as I check my error log, it seems that pact mock server got dead during the VerifyAsync Context and pact_ffi is trying to get the server port to cleanup and it hangs if the server is dead
the deadlock is inside pactffi_cleanup_mock_server, as when I remove the native code call in pact-net, everythings works
@HuiSou I'd still need to see your code I think in order to work out how you're calling this, if you could share that reproduction
Previous issues Have you searched the issue tracker to ensure this hasn't been discussed before?
Describe the bug I create a pact builder with multiple interaction and try to invoke the call via WebApplicationFactory in my API integration test, and some of my test run are getting stucked and here's the problem I discovered during --blame *notice the duplicate call of PactNet.Interop.NativeInterop.CleanupMockServer(Int32), this might cause pact_ffi mutex lock each other
Steps To Reproduce
Expected behavior A clear and concise description of what you expected to happen.
Log Output Applicable log output. Please ensure you remove any sensitive information.
Additional context Add any other context about the problem here.