From 9eb376b56c0f3fca65d1cb8c8e165365ecce15de Mon Sep 17 00:00:00 2001 From: "Jeremy D. Miller" Date: Tue, 22 Oct 2024 08:13:39 -0500 Subject: [PATCH] Added a missing await in a test --- build/build.cs | 19 +++++++++---------- .../query_against_child_collections.cs | 8 ++++---- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/build/build.cs b/build/build.cs index ced0ffe01d..4f40449cee 100644 --- a/build/build.cs +++ b/build/build.cs @@ -27,16 +27,15 @@ class Build : NukeBuild Target Test => _ => _ .DependsOn(TestBaseLib) - // .DependsOn(TestCore) - // .DependsOn(TestDocumentDb) - // .DependsOn(TestEventSourcing) - // .DependsOn(TestCli) - // .DependsOn(TestLinq) - // .DependsOn(TestMultiTenancy) - // .DependsOn(TestPatching) - // .DependsOn(TestValueTypes) - // .DependsOn(TestCodeGen) - ; + .DependsOn(TestCore) + .DependsOn(TestDocumentDb) + .DependsOn(TestEventSourcing) + .DependsOn(TestCli) + .DependsOn(TestLinq) + .DependsOn(TestMultiTenancy) + .DependsOn(TestPatching) + .DependsOn(TestValueTypes) + .DependsOn(TestCodeGen); Target TestExtensions => _ => _ .DependsOn(TestNodaTime) diff --git a/src/LinqTests/ChildCollections/query_against_child_collections.cs b/src/LinqTests/ChildCollections/query_against_child_collections.cs index 4b28a5aad4..e137967bd1 100644 --- a/src/LinqTests/ChildCollections/query_against_child_collections.cs +++ b/src/LinqTests/ChildCollections/query_against_child_collections.cs @@ -347,15 +347,15 @@ public async Task query_string_array_intersects_array() } [Fact] - public void query_string_list_intersects_array() + public async Task query_string_list_intersects_array() { - buildAuthorData(); + await buildAuthorData(); var interests = new[] { "health", "astrology" }; - var res = theSession.Query
() + var res = await theSession.Query
() .Where(x => x.CategoryList.Any(s => interests.Contains(s))) .OrderBy(x => x.Long) - .ToList(); + .ToListAsync(); res.Count.ShouldBe(2); res[0].Long.ShouldBe(1);