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