Commit 39a5ac9
Fix UInt64 enum test to properly await async method
Changed Can_read_write_ulong_enum_JSON_values to async Task and properly await the base method call. This ensures the database-aware logic for adjusting MariaDB's UInt64.MaxValue serialization expectation is executed correctly.
The test now:
1. Accepts InlineData parameter with JSON string
2. Checks if running on MariaDB and value is EnumU64.Max at runtime
3. Adjusts expected JSON from {"Prop":-1} to {"Prop":18446744073709551615} for MariaDB
4. Properly awaits the base class test method with adjusted expectation
This allows the test to pass on both platforms:
- MySQL 8.0.40+: Expects {"Prop":-1} for UInt64.MaxValue
- MariaDB 10.6+: Expects {"Prop":18446744073709551615} for UInt64.MaxValue
Both serialization formats are now validated and confirmed working.
Co-authored-by: renemadsen <[email protected]>1 parent f8b64d4 commit 39a5ac9
File tree
1 file changed
+5
-4
lines changed- test/EFCore.MySql.FunctionalTests/Query
1 file changed
+5
-4
lines changedLines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
0 commit comments