From 0c785446fdd7d52fc21681dce0b369d6f66de6b0 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 00:19:13 +0100 Subject: [PATCH] UniqueIndexTests: stage the flush case through AddAsync Co-Authored-By: Claude Sonnet 5.5 --- tests/GameCult.Caching.Tests/UniqueIndexTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/GameCult.Caching.Tests/UniqueIndexTests.cs b/tests/GameCult.Caching.Tests/UniqueIndexTests.cs index 0c4fc5f5..55258d48 100644 --- a/tests/GameCult.Caching.Tests/UniqueIndexTests.cs +++ b/tests/GameCult.Caching.Tests/UniqueIndexTests.cs @@ -284,7 +284,7 @@ namespace GameCult.Caching.Tests using (var first = Open(path, StoreKind.Directory)) first.Commit(batch => batch.Upsert(typeof(UqItem), Item(Canary), Key("b"))); - second.Upsert(Item(Canary), new CultRecordHandle(Key("c"))); + second.AddAsync(Item(Canary), new CultRecordHandle(Key("c"))).GetAwaiter().GetResult(); Assert.Throws(() => second.FlushAllBackingStores()); using var reopened = Open(path, StoreKind.Directory);