public override async Task RunAsync(string[] args) { Dictionary <string, string>?properties = CreateTestProperties(ref args); // This test kills connections, so we don't want warnings. properties["Ice.Warn.Connections"] = "0"; await using Communicator communicator = Initialize(properties, observer: Instrumentation.GetObserver()); AllTests.Run(this, communicator, false).Shutdown(); }
public static async Task <int> Main(string[] args) { ICommunicatorObserver? observer = Instrumentation.GetObserver(); Dictionary <string, string> properties = CreateTestProperties(ref args); properties["Ice.Warn.Dispatch"] = "0"; // This test kills connections, so we don't want warnings. properties["Ice.Warn.Connections"] = "0"; await using var communicator = CreateCommunicator(properties, observer: observer); return(await RunTestAsync <Collocated>(communicator, args)); }
public static async Task <int> Main(string[] args) { Dictionary <string, string> properties = CreateTestProperties(ref args); // This test kills connections, so we don't want warnings. properties["Ice.Warn.Connections"] = "0"; await using var communicator = CreateCommunicator(properties, observer: Instrumentation.GetObserver()); await communicator.ActivateAsync(); return(await RunTestAsync <Client>(communicator, args)); }
public override async Task RunAsync(string[] args) { ICommunicatorObserver? observer = Instrumentation.GetObserver(); Dictionary <string, string>?properties = CreateTestProperties(ref args); properties["Ice.Warn.Dispatch"] = "0"; // This test kills connections, so we don't want warnings. properties["Ice.Warn.Connections"] = "0"; await using Communicator communicator = Initialize(properties, observer: observer); communicator.SetProperty("TestAdapter.Endpoints", GetTestEndpoint(0)); communicator.CreateObjectAdapter("TestAdapter").Add("retry", new Retry()); await AllTests.Run(this, communicator, true).ShutdownAsync(); }
public override async Task RunAsync(string[] args) { Dictionary <string, string>?properties = CreateTestProperties(ref args); properties["Ice.RetryIntervals"] = "0 1 10 1"; // This test kills connections, so we don't want warnings. properties["Ice.Warn.Connections"] = "0"; await using Communicator communicator = Initialize(properties, observer: Instrumentation.GetObserver()); // Configure a second communicator for the invocation timeout + retry test, we need to configure a large // retry interval to avoid time-sensitive failures. properties["Ice.RetryIntervals"] = "0 1 10000"; await using Communicator communicator2 = Initialize(properties, observer: Instrumentation.GetObserver()); AllTests.Run(this, communicator, communicator2, GetTestProxy("retry", 0)).Shutdown(); }
public override async Task RunAsync(string[] args) { var properties = CreateTestProperties(ref args); properties["Ice.RetryIntervals"] = "0 1 10 1"; // // This test kills connections, so we don't want warnings. // properties["Ice.Warn.Connections"] = "0"; await using var communicator = Initialize(properties, observer: Instrumentation.GetObserver()); // // Configure a second communicator for the invocation timeout // + retry test, we need to configure a large retry interval // to avoid time-sensitive failures. // properties["Ice.RetryIntervals"] = "0 1 10000"; await using var communicator2 = Initialize(properties, observer: Instrumentation.GetObserver()); AllTests.allTests(this, communicator, communicator2, $"retry:{GetTestEndpoint(0)}").shutdown(); }
public override void Run(string[] args) { var observer = Instrumentation.GetObserver(); var properties = CreateTestProperties(ref args); properties["Ice.RetryIntervals"] = "0 1 10 1"; properties["Ice.Warn.Dispatch"] = "0"; // // This test kills connections, so we don't want warnings. // properties["Ice.Warn.Connections"] = "0"; using var communicator = Initialize(properties, observer: observer); // // Configure a second communicator for the invocation timeout // + retry test, we need to configure a large retry interval // to avoid time-sensitive failures. // properties["Ice.RetryIntervals"] = "0 1 10000"; using var communicator2 = Initialize(properties, observer: observer); communicator.CreateObjectAdapter().Add("retry", new Retry()); communicator2.CreateObjectAdapter().Add("retry", new Retry()); AllTests.allTests(this, communicator, communicator2, "retry").shutdown(); }
public override async Task RunAsync(string[] args) { ICommunicatorObserver? observer = Instrumentation.GetObserver(); Dictionary <string, string>?properties = CreateTestProperties(ref args); properties["Ice.RetryIntervals"] = "0 1 10 1"; properties["Ice.Warn.Dispatch"] = "0"; // // This test kills connections, so we don't want warnings. // properties["Ice.Warn.Connections"] = "0"; await using Communicator communicator = Initialize(properties, observer: observer); // // Configure a second communicator for the invocation timeout // + retry test, we need to configure a large retry interval // to avoid time-sensitive failures. // properties["Ice.RetryIntervals"] = "0 1 10000"; await using Communicator? communicator2 = Initialize(properties, observer: observer); communicator.CreateObjectAdapter().Add("retry", new Retry()); communicator2.CreateObjectAdapter().Add("retry", new Retry()); await AllTests.Run(this, communicator, communicator2, "retry").ShutdownAsync(); }