From 2f84f062784a901f5d72bb6cdee1b1947b370291 Mon Sep 17 00:00:00 2001 From: Joshua Nitschke Date: Fri, 15 Mar 2024 13:39:51 -0700 Subject: [PATCH] Update noda_time_acceptance.cs --- .../Acceptance/noda_time_acceptance.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Marten.NodaTime.Testing/Acceptance/noda_time_acceptance.cs b/src/Marten.NodaTime.Testing/Acceptance/noda_time_acceptance.cs index c7a76e8f9f6..0c5a717e309 100644 --- a/src/Marten.NodaTime.Testing/Acceptance/noda_time_acceptance.cs +++ b/src/Marten.NodaTime.Testing/Acceptance/noda_time_acceptance.cs @@ -115,7 +115,7 @@ public void can_insert_document(SerializerType serializerType) [Theory] [InlineData(SerializerType.SystemTextJson)] [InlineData(SerializerType.Newtonsoft)] - public void can_query_document_with_noda_time_types(SerializerType serializerType) + public async Task can_query_document_with_noda_time_types(SerializerType serializerType) { StoreOptions(_ => { @@ -137,6 +137,7 @@ public void can_query_document_with_noda_time_types(SerializerType serializerTyp { session.Insert(testDoc); session.SaveChanges(); + var doc = await session.LoadAsync(testDoc.Id); } using (var query = theStore.QuerySession()) @@ -185,6 +186,7 @@ public void can_query_document_with_noda_time_types(SerializerType serializerTyp query.Query().FirstOrDefault(d => d.NullableInstantUTC > instantUTC.PlusTicks(-1000)), query.Query().FirstOrDefault(d => d.NullableInstantUTC >= instantUTC.PlusTicks(-1000)) + }; results.ToArray().ShouldAllBe(x => x.Equals(testDoc));