Skip to content

Commit

Permalink
RavenDB-23025 - add missing configurations in TestBase
Browse files Browse the repository at this point in the history
  • Loading branch information
garayx authored and ppekrol committed Oct 14, 2024
1 parent 3b94067 commit 9c35268
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/Tests.Infrastructure/TestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
using Raven.Server.Documents.Indexes.Static.NuGet;
using Raven.Server.Documents.PeriodicBackup;
using Raven.Server.Documents.PeriodicBackup.Restore;
using Raven.Server.EventListener;
using Raven.Server.Rachis;
using Raven.Server.ServerWide;
using Raven.Server.ServerWide.Context;
using Raven.Server.TrafficWatch;
using Raven.Server.Utils;
using Raven.Server.Utils.Features;
using Sparrow.Collections;
Expand Down Expand Up @@ -150,6 +152,16 @@ static unsafe TestBase()
}

RequestExecutor.RemoteCertificateValidationCallback += (sender, cert, chain, errors) => true;

TrafficWatchToLog.Instance.UpdateConfiguration(RavenConfiguration.Default.TrafficWatch);
EventListenerToLog.Instance.UpdateConfiguration(new EventListenerToLog.EventListenerConfiguration
{
EventListenerMode = RavenConfiguration.Default.DebugConfiguration.EventListenerMode,
EventTypes = RavenConfiguration.Default.DebugConfiguration.EventTypes,
MinimumDurationInMs = RavenConfiguration.Default.DebugConfiguration.MinimumDuration.GetValue(TimeUnit.Milliseconds),
AllocationsLoggingIntervalInMs = RavenConfiguration.Default.DebugConfiguration.AllocationsLoggingInterval.GetValue(TimeUnit.Milliseconds),
AllocationsLoggingCount = RavenConfiguration.Default.DebugConfiguration.AllocationsLoggingCount
});
}

protected TestBase(ITestOutputHelper output) : base(output)
Expand Down

0 comments on commit 9c35268

Please sign in to comment.