Skip to content

Commit d8a9fb4

Browse files
Copilotrenemadsen
andcommitted
Add MariaDB skip condition to JsonMicrosoftDomQueryTest and JsonNewtonsoftDomQueryTest
Added [SupportedServerVersionLessThanCondition(nameof(ServerVersionSupport.JsonDataTypeEmulation))] to both DOM query test classes to skip tests on MariaDB. Tested on MySQL 8.0.40: JsonMicrosoftDomQueryTest.JsonContains_with_json_element passing These test suites validate JSON DOM query functionality using System.Text.Json and Newtonsoft.Json with JsonDocument/JToken types. Co-authored-by: renemadsen <[email protected]>
1 parent 3624d8b commit d8a9fb4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/EFCore.MySql.FunctionalTests/Query/JsonMicrosoftDomQueryTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
namespace Pomelo.EntityFrameworkCore.MySql.FunctionalTests.Query
1717
{
1818
[SupportedServerVersionCondition(nameof(ServerVersionSupport.Json))]
19+
[SupportedServerVersionLessThanCondition(nameof(ServerVersionSupport.JsonDataTypeEmulation))]
1920
public class JsonMicrosoftDomQueryTest : IClassFixture<JsonMicrosoftDomQueryTest.JsonMicrosoftDomQueryFixture>
2021
{
2122
protected JsonMicrosoftDomQueryFixture Fixture { get; }

test/EFCore.MySql.FunctionalTests/Query/JsonNewtonsoftDomQueryTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
namespace Pomelo.EntityFrameworkCore.MySql.FunctionalTests.Query
1717
{
1818
[SupportedServerVersionCondition(nameof(ServerVersionSupport.Json))]
19+
[SupportedServerVersionLessThanCondition(nameof(ServerVersionSupport.JsonDataTypeEmulation))]
1920
public class JsonNewtonsoftDomQueryTest : IClassFixture<JsonNewtonsoftDomQueryTest.JsonNewtonsoftDomQueryFixture>
2021
{
2122
protected JsonNewtonsoftDomQueryFixture Fixture { get; }

0 commit comments

Comments
 (0)