Update the expected data for Mission.Duration as since it is based on a datetime there is no millsecond support in Jet

pull/257/head
Christopher Jolly 1 year ago
parent 08be903455
commit def7692ee9

@ -1,5 +1,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading.Tasks;
using EntityFrameworkCore.Jet.FunctionalTests.TestUtilities;
using Microsoft.EntityFrameworkCore;
@ -91,6 +92,7 @@ namespace EntityFrameworkCore.Jet.FunctionalTests.Query
mission.Date = mission.Date.AddYears(100);
}
mission.Timeline = JetTestHelpers.GetExpectedValue(mission.Timeline);
mission.Duration = new TimeSpan(mission.Duration.Days, mission.Duration.Hours, mission.Duration.Minutes, mission.Duration.Seconds);
}
foreach (var tag in data.Tags)

@ -10140,10 +10140,9 @@ WHERE IIF(`w`.`AmmunitionType` = 1, @__key_1, @__key_1) IN ('{0a47bcb7-a1cb-4345
AssertSql(
"""
SELECT [m].[Duration]
FROM [Missions] AS [m]
"""
);
SELECT `m`.`Duration`
FROM `Missions` AS `m`
""");
}
private void AssertSql(params string[] expected)

@ -1,6 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Threading.Tasks;
using EntityFrameworkCore.Jet.FunctionalTests.TestUtilities;
using Microsoft.EntityFrameworkCore;
@ -93,6 +94,7 @@ public class TPCGearsOfWarQueryJetFixture : TPCGearsOfWarQueryRelationalFixture
mission.Date = mission.Date.AddYears(100);
}
mission.Timeline = JetTestHelpers.GetExpectedValue(mission.Timeline);
mission.Duration = new TimeSpan(mission.Duration.Days, mission.Duration.Hours, mission.Duration.Minutes, mission.Duration.Seconds);
}
foreach (var tag in data.Tags)

@ -35,8 +35,8 @@ public class TPCGearsOfWarQueryJetTest : TPCGearsOfWarQueryRelationalTestBase<TP
AssertSql(
"""
SELECT [m].[Duration]
FROM [Missions] AS [m]
SELECT `m`.`Duration`
FROM `Missions` AS `m`
""");
}

@ -1,6 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Threading.Tasks;
using EntityFrameworkCore.Jet.FunctionalTests.TestUtilities;
using Microsoft.EntityFrameworkCore;
@ -93,6 +94,7 @@ public class TPTGearsOfWarQueryJetFixture : TPTGearsOfWarQueryRelationalFixture
mission.Date = mission.Date.AddYears(100);
}
mission.Timeline = JetTestHelpers.GetExpectedValue(mission.Timeline);
mission.Duration = new TimeSpan(mission.Duration.Days, mission.Duration.Hours, mission.Duration.Minutes, mission.Duration.Seconds);
}
foreach (var tag in data.Tags)

@ -35,8 +35,8 @@ public class TPTGearsOfWarQueryJetTest : TPTGearsOfWarQueryRelationalTestBase<TP
AssertSql(
"""
SELECT [m].[Duration]
FROM [Missions] AS [m]
SELECT `m`.`Duration`
FROM `Missions` AS `m`
""");
}

Loading…
Cancel
Save