Skip to content

Commit

Permalink
RavenDB-22870 fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
karmeli87 committed Oct 7, 2024
1 parent c500e08 commit 6428381
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/SlowTests/Tests/TestsInheritanceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ where Filter(method)
select method;

var array = types.ToArray();
const int numberToTolerate = 6415;
const int numberToTolerate = 6416;
if (array.Length == numberToTolerate)
return;

Expand Down
6 changes: 3 additions & 3 deletions test/Tests.Infrastructure/TestCertificatesHolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public TestCertificatesHolder(string serverCertificatePath, string clientCertifi
{
try
{
return new TrackingX509Certificate2(ServerCertificatePath, (string)null, X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.Exportable);
return new TrackingX509Certificate2(ServerCertificatePath, (string)null, X509KeyStorageFlags.MachineKeySet | CertificateLoaderUtil.FlagsForExport);
}
catch (CryptographicException e)
{
Expand Down Expand Up @@ -211,7 +211,7 @@ public TestCertificatesHolder(TestCertificatesHolder parent, Func<string> getTem
{
try
{
return new TrackingX509Certificate2(ServerCertificatePath, (string)null, X509KeyStorageFlags.MachineKeySet| X509KeyStorageFlags.Exportable);
return new TrackingX509Certificate2(ServerCertificatePath, (string)null, X509KeyStorageFlags.MachineKeySet | CertificateLoaderUtil.FlagsForExport);
}
catch (CryptographicException e)
{
Expand All @@ -230,7 +230,7 @@ private Lazy<TrackingX509Certificate2> CreateLazy(Func<string> path, int index)
{
try
{
return new TrackingX509Certificate2(path(), (string)null, X509KeyStorageFlags.MachineKeySet);
return new TrackingX509Certificate2(path(), (string)null, X509KeyStorageFlags.MachineKeySet | CertificateLoaderUtil.FlagsForExport);
}
catch (CryptographicException e)
{
Expand Down

0 comments on commit 6428381

Please sign in to comment.