Skip to content

Commit

Permalink
RavenDB-23314: skip high allocating tests on 32Bits
Browse files Browse the repository at this point in the history
  • Loading branch information
garayx committed Dec 23, 2024
1 parent c7fb877 commit bf535a4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions test/SlowTests/Cluster/ClusterTransactionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,17 @@ private string RandomString(int length)
return new string(str);
}

[Theory]
[RavenTheory(RavenTestCategory.ClusterTransactions | RavenTestCategory.ClientApi)]
[InlineData(1)]
public async Task CanPreformSeveralClusterTransactions(int numberOfNodes)
{
await CanPreformSeveralClusterTransactions_X64(1);
}

[RavenMultiplatformTheory(RavenTestCategory.ClusterTransactions | RavenTestCategory.ClientApi, RavenArchitecture.AllX64)]
[InlineData(3)]
[InlineData(5)]
public async Task CanPreformSeveralClusterTransactions(int numberOfNodes)
public async Task CanPreformSeveralClusterTransactions_X64(int numberOfNodes)
{
var numOfSessions = 10;
var docsPerSession = 2;
Expand Down Expand Up @@ -2109,7 +2115,7 @@ public async Task ClusterWideTrx_WhenLoadingDeletedDoc_ShouldNotIncludingMissing
}
}

[RavenTheory(RavenTestCategory.ClusterTransactions | RavenTestCategory.ClientApi)]
[RavenMultiplatformTheory(RavenTestCategory.ClusterTransactions | RavenTestCategory.ClientApi, RavenArchitecture.AllX64)]
[RavenData(DatabaseMode = RavenDatabaseMode.All)]
public async Task ClusterWideTrx_WhenExecutedBatchExceedsSpaceLimit_ShouldStoreAllDocumentsSuccessfully(Options options)
{
Expand Down
2 changes: 1 addition & 1 deletion test/SlowTests/Cluster/CompareExchangeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public CompareExchangeTests(ITestOutputHelper output) : base(output)
{
}

[RavenFact(RavenTestCategory.CompareExchange)]
[RavenMultiplatformTheory(RavenTestCategory.CompareExchange, RavenArchitecture.AllX64)]
public async Task AddOrUpdateCompareExchangeCommand_WhenCommandSentTwice_SecondAttemptShouldNotReturnNull()
{
var leader = GetNewServer();
Expand Down
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 = 6395;
const int numberToTolerate = 6394;
if (array.Length == numberToTolerate)
return;

Expand Down

0 comments on commit bf535a4

Please sign in to comment.