Permalink
Browse files

RavenDB-5587 increased resource load times for tests to prevent timeo…

…uts on slow TC agents
  • Loading branch information...
1 parent b195aa6 commit 646af1365aa2ed502f9bbba720ca15e896cdf2b7 @ppekrol ppekrol committed with ayende Nov 7, 2016
@@ -27,13 +27,6 @@ public class MigrationTests : RavenTest
private Dictionary<string, ProductSales.Result> productSalesResults;
- protected override void ModifyConfiguration(InMemoryRavenConfiguration configuration)
- {
- configuration.MaxSecondsForTaskToWaitForDatabaseToLoad = 15;
-
- base.ModifyConfiguration(configuration);
- }
-
public MigrationTests()
{
FillOrdersByCompany();
@@ -3,13 +3,9 @@
// Copyright (c) Hibernating Rhinos LTD. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
-using System;
using System.Collections.Generic;
-using System.Diagnostics;
using System.Threading.Tasks;
using Raven.Abstractions.Data;
-using Raven.Client.Extensions;
-using Raven.Database.Config;
using Raven.Tests.Common;
using Xunit;
@@ -20,13 +16,6 @@ namespace Raven.Tests.Bundles.Encryption
{
public class EncryptionBackupAndRestore : RavenTest
{
- protected override void ModifyConfiguration(InMemoryRavenConfiguration configuration)
- {
- configuration.MaxSecondsForTaskToWaitForDatabaseToLoad = 10;
-
- base.ModifyConfiguration(configuration);
- }
-
[Theory]
[PropertyData("Storages")]
public async Task CanRestoreAnEncryptedDatabase(string storageEngineTypeName)
@@ -190,7 +190,7 @@ public void StartDatabase(int index)
serverConfiguration.RunInMemory = previousServer.SystemDatabase.Configuration.RunInMemory;
serverConfiguration.Port = previousServer.SystemDatabase.Configuration.Port;
serverConfiguration.DefaultStorageTypeName = GetDefaultStorageType();
-
+ serverConfiguration.MaxSecondsForTaskToWaitForDatabaseToLoad = 20;
serverConfiguration.Encryption.UseFips = ConfigurationHelper.UseFipsEncryptionAlgorithms;
ModifyConfiguration(serverConfiguration);
@@ -97,6 +97,7 @@ protected RavenFilesTestBase()
ravenConfiguration.DefaultStorageTypeName = storageType;
ravenConfiguration.AnonymousUserAccessMode = enableAuthentication ? AnonymousUserAccessMode.None : AnonymousUserAccessMode.Admin;
ravenConfiguration.Encryption.UseFips = ConfigurationHelper.UseFipsEncryptionAlgorithms;
+ ravenConfiguration.MaxSecondsForTaskToWaitForDatabaseToLoad = 20;
ravenConfiguration.FileSystem.MaximumSynchronizationInterval = SynchronizationInterval;
ravenConfiguration.FileSystem.DataDirectory = Path.Combine(directory, "FileSystems");
@@ -199,6 +199,7 @@ protected string NewDataPath(string prefix = null, bool forceCreateDir = false)
documentStore.Configuration.FileSystem.DataDirectory = Path.Combine(dataDirectory, "FileSystem");
documentStore.Configuration.Encryption.UseFips = ConfigurationHelper.UseFipsEncryptionAlgorithms;
+ documentStore.Configuration.MaxSecondsForTaskToWaitForDatabaseToLoad = 20;
if (activeBundles != null)
{
@@ -434,6 +435,7 @@ public static string GetDefaultStorageType(string requestedStorage = null)
ravenConfiguration.FileSystem.DataDirectory = Path.Combine(directory, "FileSystem");
ravenConfiguration.Encryption.UseFips = ConfigurationHelper.UseFipsEncryptionAlgorithms;
+ ravenConfiguration.MaxSecondsForTaskToWaitForDatabaseToLoad = 20;
ravenConfiguration.Settings["Raven/StorageTypeName"] = ravenConfiguration.DefaultStorageTypeName;

0 comments on commit 646af13

Please sign in to comment.