示例#1
0
        public RavenTestBase()
        {
            CommonInitializationUtil.Initialize();

            ClearDatabaseDirectory();
            Directory.CreateDirectory(DataDir);
        }
示例#2
0
        protected RavenTestBase()
        {
            Environment.SetEnvironmentVariable(Constants.RavenDefaultQueryTimeout, "30");
            CommonInitializationUtil.Initialize();

            // Make sure to delete the Data folder which we be used by tests that do not call the NewDataPath from whatever reason.
            var dataFolder = FilePathTools.MakeSureEndsWithSlash(@"~\Data".ToFullPath());

            ClearDatabaseDirectory(dataFolder);
            pathsToDelete.Add(dataFolder);
        }
示例#3
0
        protected RavenTestBase()
        {
            if (checkedAsyncVoid == false)
            {
                checkedAsyncVoid = true;
                AssertNoAsyncVoidMethods(GetType().Assembly);
            }

            Environment.SetEnvironmentVariable(Constants.RavenDefaultQueryTimeout, "30");
            CommonInitializationUtil.Initialize();

            // Make sure to delete the Data folder which we be used by tests that do not call the NewDataPath from whatever reason.
            var dataFolder = FilePathTools.MakeSureEndsWithSlash(@"~\Databases".ToFullPath());

            ClearDatabaseDirectory(dataFolder);
            pathsToDelete.Add(dataFolder);
        }
示例#4
0
 public RavenTestBase()
 {
     CommonInitializationUtil.Initialize();
 }
示例#5
0
 public RavenTestBase()
 {
     Environment.SetEnvironmentVariable(Constants.RavenDefaultQueryTimeout, "30");
     CommonInitializationUtil.Initialize();
 }