Skip to content

Commit 8f89593

Browse files
committed
CSHARP-4244: Skip tests on older server versions due to server bugs.
1 parent 7cba6ac commit 8f89593

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/MongoDB.Driver.Tests/Linq/Linq3ImplementationTests/Jira/CSharp4244Tests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,19 @@
1515

1616
using System.Linq;
1717
using FluentAssertions;
18+
using MongoDB.Driver.Core.TestHelpers.XunitExtensions;
1819
using MongoDB.Driver.Linq;
1920
using Xunit;
2021

2122
namespace MongoDB.Driver.Tests.Linq.Linq3ImplementationTests.Jira
2223
{
2324
public class CSharp4244Tests : Linq3IntegrationTest
2425
{
25-
[Fact]
26+
[SkippableFact]
2627
public void Where_with_root_should_work()
2728
{
29+
RequireServer.Check().VersionGreaterThanOrEqualTo("6.0");
30+
2831
var collection = CreateCollection();
2932
var person = new Person { Id = 2, Name = "Jane Doe" };
3033

0 commit comments

Comments
 (0)