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));