From db32b919e24c5b31e5533fd4cbe74ddab05786e6 Mon Sep 17 00:00:00 2001 From: Eugene Baranovsky Date: Sun, 8 Sep 2024 13:27:31 +1200 Subject: [PATCH] unrelated, existing linting issues --- src/DaemonTests/Bugs/Bug_2074_recovering_from_errors.cs | 2 +- src/DocumentDbTests/Bugs/Bug_2942_include_error.cs | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/DaemonTests/Bugs/Bug_2074_recovering_from_errors.cs b/src/DaemonTests/Bugs/Bug_2074_recovering_from_errors.cs index 3b48a8bbcd..8df2aa5cf5 100644 --- a/src/DaemonTests/Bugs/Bug_2074_recovering_from_errors.cs +++ b/src/DaemonTests/Bugs/Bug_2074_recovering_from_errors.cs @@ -36,7 +36,7 @@ public async Task do_not_blow_up() await documentStore.Advanced.Clean.CompletelyRemoveAllAsync(); var logger = provider.GetRequiredService>(); - using var daemon = await documentStore.BuildProjectionDaemonAsync(logger: logger).ConfigureAwait(false); + using var daemon = await documentStore.BuildProjectionDaemonAsync(logger: logger); await daemon.StartAllAsync(); var waiter = daemon.Tracker.WaitForShardState("UserIssueCounter:All", 1000, 1.Hours()); diff --git a/src/DocumentDbTests/Bugs/Bug_2942_include_error.cs b/src/DocumentDbTests/Bugs/Bug_2942_include_error.cs index ceb25b8af7..6da2262027 100644 --- a/src/DocumentDbTests/Bugs/Bug_2942_include_error.cs +++ b/src/DocumentDbTests/Bugs/Bug_2942_include_error.cs @@ -1,5 +1,5 @@ +#nullable enable using System; -using System.Linq; using System.Threading.Tasks; using Marten; using Marten.Testing.Harness; @@ -20,10 +20,8 @@ public async Task query_with_include() var id = Guid.NewGuid(); DocumentB? docB = null; - var docA = await theSession.Query().Include(a => a.Id, b => docB = b).SingleOrDefaultAsync(a => a.Id == THEID); - - - var docA2 = await theSession.Query().Include(a => a.Id, b => docB = b).SingleOrDefaultAsync(a => a.Id == id); + await theSession.Query().Include(a => a.Id, b => docB = b).SingleOrDefaultAsync(a => a.Id == THEID); + await theSession.Query().Include(a => a.Id, b => docB = b).SingleOrDefaultAsync(a => a.Id == id); } }