Skip to content

Commit 0326a1c

Browse files
committed
Fix DateOnly tests.
1 parent 462c142 commit 0326a1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ await AssertSingle(
3333
.Where(i => i.BestServedBefore.DayNumber - todayDateTime.DayNumber < 30));
3434

3535
AssertSql(
36-
@"@__todayDateTime_DayNumber_0='738170'
36+
$@"@__todayDateTime_DayNumber_0='{todayDateTime.DayNumber}'
3737
3838
SELECT `i`.`IceCreamId`, `i`.`BestServedBefore`, `i`.`Name`
3939
FROM `IceCream` AS `i`
@@ -131,7 +131,7 @@ public async Task DateDiffDay(bool isAsync)
131131
Assert.Single(result);
132132

133133
AssertSql(
134-
@"@__todayDateOnly_1='01/16/2022' (DbType = Date)
134+
$@"@__todayDateOnly_1='{todayDateOnly:MM'/'dd'/'yyyy}' (DbType = Date)
135135
136136
SELECT `i`.`IceCreamId`, `i`.`BestServedBefore`, `i`.`Name`
137137
FROM `IceCream` AS `i`

0 commit comments

Comments
 (0)