Skip to content

Commit b1598e6

Browse files
author
Bart Koelman
committed
Fix broken test in cibuild
1 parent f2db2b0 commit b1598e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Mixed/AtomicSerializationTests.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.AtomicOperations.Mixed
1212
{
1313
public sealed class AtomicSerializationTests : IClassFixture<IntegrationTestContext<TestableStartup<OperationsDbContext>, OperationsDbContext>>
1414
{
15+
private const string JsonDateTimeOffsetFormatSpecifier = "yyyy-MM-ddTHH:mm:ss.FFFFFFFK";
16+
1517
private readonly IntegrationTestContext<TestableStartup<OperationsDbContext>, OperationsDbContext> _testContext;
1618
private readonly OperationsFakers _fakers = new();
1719

@@ -59,7 +61,8 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
5961
id = newPerformer.StringId,
6062
attributes = new
6163
{
62-
artistName = newPerformer.ArtistName
64+
artistName = newPerformer.ArtistName,
65+
bornAt = newPerformer.BornAt
6366
}
6467
}
6568
}
@@ -88,7 +91,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
8891
""id"": """ + newPerformer.StringId + @""",
8992
""attributes"": {
9093
""artistName"": """ + newPerformer.ArtistName + @""",
91-
""bornAt"": ""0001-01-01T01:00:00+01:00""
94+
""bornAt"": """ + newPerformer.BornAt.ToString(JsonDateTimeOffsetFormatSpecifier) + @"""
9295
},
9396
""links"": {
9497
""self"": ""http://localhost/performers/" + newPerformer.StringId + @"""

0 commit comments

Comments
 (0)