You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

TestBase.cs 622 B

12345678910111213141516171819202122
  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // TestBase.cs
  3. namespace Microsoft.AutoGen.Core.Grpc.Tests;
  4. public class TestBase
  5. {
  6. public TestBase()
  7. {
  8. try
  9. {
  10. // For some reason the first call to StartAsync() throws when these tests
  11. // run in parallel, even though the port does not actually collide between
  12. // different instances of GrpcAgentRuntimeFixture. This is a workaround.
  13. _ = new GrpcAgentRuntimeFixture().StartAsync().Result;
  14. }
  15. catch (Exception e)
  16. {
  17. Console.WriteLine(e);
  18. }
  19. }
  20. }