Example #1
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 RavenDB_11379(testOutputHelper))
                        {
                            test.Should_remove_attachment(@"

var doc = loadToUsers(this);

var attachments = this['@metadata']['@attachments'];

for (var i = 0; i < attachments.length; i++) {
    if (attachments[i].Name.endsWith('.png'))
        doc.addAttachment(loadAttachment(attachments[i].Name));
}
", false, "photo.png", "photo.png");
                        }
                }
                catch (Exception e)
                {
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.WriteLine(e);
                    Console.ForegroundColor = ConsoleColor.White;
                }
            }
        }
Example #2
0
        public static async Task Main(string[] args)
        {
            Console.WriteLine(Process.GetCurrentProcess().Id);
            for (int i = 0; i < 1230; i++)
            {
                var sp = Stopwatch.StartNew();
                Console.WriteLine($"Starting to run {i}");

                try
                {
                    using (var testOutputHelper = new ConsoleTestOutputHelper())
                        using (var test = new ClusterDatabaseMaintenance(testOutputHelper))
                        {
                            await test.ReshuffleAfterPromotion();
                        }
                }
                catch (Exception e)
                {
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.WriteLine(e);
                    Console.ForegroundColor = ConsoleColor.White;
                    // Console.ReadLine();
                    throw;
                }
                finally
                {
                    Console.WriteLine($"test ran for {sp.ElapsedMilliseconds:#,#}ms");
                }
            }
        }
Example #3
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 RavenDB_15215(testOutputHelper))
                 {
                     await test.CanReduceCountersMetadataWhenLoadingDocumentsPage();
                 }
         }
         catch (Exception e)
         {
             Console.ForegroundColor = ConsoleColor.Red;
             Console.WriteLine(e);
             Console.ForegroundColor = ConsoleColor.White;
         }
     }
 }
Example #4
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 RavenDB_13861(testOutputHelper))
                 {
                     await test.BatchMemorySizeLimitationShouldBeExactIn64Bit();
                 }
         }
         catch (Exception e)
         {
             Console.ForegroundColor = ConsoleColor.Red;
             Console.WriteLine(e);
             Console.ForegroundColor = ConsoleColor.White;
         }
     }
 }
Example #5
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 AllDocsSubscription(testOutputHelper))
                 {
                     await test.CanUseAllDocsSubscription();
                 }
         }
         catch (Exception e)
         {
             Console.ForegroundColor = ConsoleColor.Red;
             Console.WriteLine(e);
             Console.ForegroundColor = ConsoleColor.White;
         }
     }
 }
Example #6
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 FirstClassPatch(testOutputHelper))
                 {
                     test.PatchNullField_ExpectFieldSetToNull();
                 }
         }
         catch (Exception e)
         {
             Console.ForegroundColor = ConsoleColor.Red;
             Console.WriteLine(e);
             Console.ForegroundColor = ConsoleColor.White;
         }
     }
 }
Example #7
0
 public static async Task Main(string[] args)
 {
     Console.WriteLine(Process.GetCurrentProcess().Id);
     for (int i = 0; i < 123; i++)
     {
         Console.WriteLine($"Starting to run {i}");
         try
         {
             using (var testOutputHelper = new ConsoleTestOutputHelper())
                 using (var test = new RavenDB_13940(testOutputHelper))
                 {
                     test.CorruptedSingleTransactionPage_WontStopTheRecoveryIfIgnoreErrorsOfSyncedTransactionIsSet();
                 }
         }
         catch (Exception e)
         {
             Console.ForegroundColor = ConsoleColor.Red;
             Console.WriteLine(e);
             Console.ForegroundColor = ConsoleColor.White;
             // Console.ReadLine();
         }
     }
 }
Example #8
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;
         }
     }
 }