Exemple #1
0
        public static void Main(string[] args)
        {
#if !DNXCORE50
            //TODO: finish checking this test, it seems to have race condition or sometihing
            for (int i = 0; i < 100; i++)
            {
                Console.WriteLine(i);
                //using (var x = new RavenDB_5390())
                //{
                //    x.Frequent_updates_of_document_should_not_cause_deadlock_in_prefetcher();
                //}
                using (var x = new SubscriptionsBasic())
                {
                    try
                    {
                        x.ShouldNotOverrideSubscriptionAckEtag("voron");
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex);
                    }
                    try
                    {
                        x.ShouldNotOverrideSubscriptionAckEtag("esent");
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex);
                    }
                }
            }
#endif
        }
Exemple #2
0
 public static async Task Main(string[] args)
 {
     Console.WriteLine(Process.GetCurrentProcess().Id);
     for (int i = 0; i < 10_000; i++)
     {
         Console.WriteLine($"Starting to run {i}");
         try
         {
             using (var testOutputHelper = new ConsoleTestOutputHelper())
                 //using (var test = new RollingIndexesClusterTests(testOutputHelper))
                 using (var test = new SubscriptionsBasic(testOutputHelper))
                 {
                     //await test.RemoveNodeFromDatabaseGroupWhileRollingDeployment();
                     await test.ShouldStopPullingDocsAndCloseSubscriptionOnSubscriberErrorByDefault();
                 }
         }
         catch (Exception e)
         {
             Console.ForegroundColor = ConsoleColor.Red;
             Console.WriteLine(e);
             Console.ForegroundColor = ConsoleColor.White;
         }
     }
 }