Skip to content

Commit c1a8b85

Browse files
committed
ignoring failing tests on server versions that don't support the feature.
1 parent ef72b30 commit c1a8b85

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/MongoDB.Driver.Tests/Linq/MongoQueryableTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ public void OrderBy_ThenBy_ThenByDescending_with_redundant_fields_in_different_d
565565
}
566566

567567
[Test]
568+
[RequiresServer(MinimumVersion = "3.1.9")]
568569
public void Sample()
569570
{
570571
var query = CreateQuery().Sample(100);
@@ -732,6 +733,7 @@ public void Select_syntax_array()
732733
}
733734

734735
[Test]
736+
[RequiresServer(MinimumVersion = "3.1.9")]
735737
public void Select_method_array_index()
736738
{
737739
var query = CreateQuery().Select(x => x.M[0]);
@@ -742,6 +744,7 @@ public void Select_method_array_index()
742744
}
743745

744746
[Test]
747+
[RequiresServer(MinimumVersion = "3.1.9")]
745748
public void Select_syntax_array_index()
746749
{
747750
var query = from x in CreateQuery()
@@ -753,6 +756,7 @@ public void Select_syntax_array_index()
753756
}
754757

755758
[Test]
759+
[RequiresServer(MinimumVersion = "3.1.9")]
756760
public void Select_method_embedded_pipeline()
757761
{
758762
var query = CreateQuery().Select(x => x.M.First());
@@ -948,6 +952,7 @@ public void Skip()
948952
}
949953

950954
[Test]
955+
[RequiresServer(MinimumVersion = "3.1.9")]
951956
public void StandardDeviationPopulation()
952957
{
953958
var result = CreateQuery().Select(x => x.C.E.F).StandardDeviationPopulation();
@@ -956,6 +961,7 @@ public void StandardDeviationPopulation()
956961
}
957962

958963
[Test]
964+
[RequiresServer(MinimumVersion = "3.1.9")]
959965
public void StandardDeviationPopulation_with_selector()
960966
{
961967
var result = CreateQuery().StandardDeviationPopulation(x => x.C.E.F);
@@ -964,6 +970,7 @@ public void StandardDeviationPopulation_with_selector()
964970
}
965971

966972
[Test]
973+
[RequiresServer(MinimumVersion = "3.1.9")]
967974
public async Task StandardDeviationPopulationAsync()
968975
{
969976
var result = await CreateQuery().Select(x => x.C.E.F).StandardDeviationPopulationAsync();
@@ -972,6 +979,7 @@ public async Task StandardDeviationPopulationAsync()
972979
}
973980

974981
[Test]
982+
[RequiresServer(MinimumVersion = "3.1.9")]
975983
public async Task StandardDeviationPopulationAsync_with_selector()
976984
{
977985
var result = await CreateQuery().StandardDeviationPopulationAsync(x => x.C.E.F);
@@ -980,6 +988,7 @@ public async Task StandardDeviationPopulationAsync_with_selector()
980988
}
981989

982990
[Test]
991+
[RequiresServer(MinimumVersion = "3.1.9")]
983992
public void StandardDeviationSample()
984993
{
985994
var result = CreateQuery().Select(x => x.C.E.F).StandardDeviationSample();
@@ -988,6 +997,7 @@ public void StandardDeviationSample()
988997
}
989998

990999
[Test]
1000+
[RequiresServer(MinimumVersion = "3.1.9")]
9911001
public void StandardDeviationSample_with_selector()
9921002
{
9931003
var result = CreateQuery().StandardDeviationSample(x => x.C.E.F);
@@ -996,6 +1006,7 @@ public void StandardDeviationSample_with_selector()
9961006
}
9971007

9981008
[Test]
1009+
[RequiresServer(MinimumVersion = "3.1.9")]
9991010
public async Task StandardDeviationSampleAsync()
10001011
{
10011012
var result = await CreateQuery().Select(x => x.C.E.F).StandardDeviationSampleAsync();
@@ -1004,6 +1015,7 @@ public async Task StandardDeviationSampleAsync()
10041015
}
10051016

10061017
[Test]
1018+
[RequiresServer(MinimumVersion = "3.1.9")]
10071019
public async Task StandardDeviationSampleAsync_with_selector()
10081020
{
10091021
var result = await CreateQuery().StandardDeviationSampleAsync(x => x.C.E.F);

0 commit comments

Comments
 (0)