Flaky tests for LocalHostCallbackListener
Job #6735247041 failed for 10293728:
There have been a number of failures of the tests for the LocalHostCallbackListener
class with different versions of .NET on Windows since changing to the new Windows shared runners (could be unrelated as the Windows tests were not being run when they were expected, due to a separate configuration error). In each case for different versions of .NET and re-running the tests on the same code succeeds.
As these tests are making extensive use of asynchronous programming to simulate the OAuth three-legged-handshake during the authorization code flow (with PKCE), it is likely that there is a race condition of some description in the tests or code.
Need to investigate how to make the tests more reliable.