Ejemplo n.º 1
0
        public override void Run(string[] args)
        {
            Dictionary <string, string> properties = CreateTestProperties(ref args);

            //
            // For this test, we want to disable retries.
            //
            properties["Ice.RetryIntervals"] = "-1";

            //
            // This test kills connections, so we don't want warnings.
            //
            properties["Ice.Warn.Connections"] = "0";

            // This test relies on filling the TCP send/recv buffer, so
            // we rely on a fixed value for these buffers.
            properties["Ice.TCP.SndSize"] = "50000";

            //
            // Setup the test transport plug-in.
            //
            if (!properties.TryGetValue("Ice.Default.Transport", out string?transport))
            {
                transport = "tcp";
            }
            properties["Ice.Default.Transport"] = $"test-{transport}";

            using Communicator communicator = Initialize(properties);
            var plugin = new Plugin(communicator);

            plugin.Initialize();
            communicator.AddPlugin("Test", plugin);
            IBackgroundPrx background = AllTests.allTests(this);

            background.shutdown();
        }