Skip to content

Commit

Permalink
Added a missing await in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Oct 22, 2024
1 parent fde25e3 commit 9eb376b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
19 changes: 9 additions & 10 deletions build/build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Article>()
var res = await theSession.Query<Article>()
.Where(x => x.CategoryList.Any(s => interests.Contains(s)))
.OrderBy(x => x.Long)
.ToList();
.ToListAsync();

res.Count.ShouldBe(2);
res[0].Long.ShouldBe(1);
Expand Down

0 comments on commit 9eb376b

Please sign in to comment.