Drive the escaped-observer probe through a database write
A direct cache write is not a database change on this base, so the database observer could not show it. PutAsync is, and the observer after the thrower must see it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
ecee41e8ff
commit
b8ceab84ac
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ namespace GameCult.Networking.Tests
|
|||
var seen = new ConcurrentQueue<string?>();
|
||||
using var watch = database.Watch<NetworkSchemaNote>().Subscribe(change => seen.Enqueue(change.Document?.Text));
|
||||
var boom = new CultRecordKey("pub:boom");
|
||||
var escaped = Assert.ThrowsAsync<InvalidOperationException>(() => cache.UpsertAsync(Note("boom"), new CultRecordHandle<NetworkSchemaNote>(boom)));
|
||||
var escaped = Assert.ThrowsAsync<InvalidOperationException>(() => database.PutAsync(boom, Note("boom")));
|
||||
|
||||
ObservableSystem.RegisterUnhandledExceptionHandler(previous);
|
||||
var after = new CultRecordKey("pub:after");
|
||||
|
|
|
|||
Loading…
Reference in a new issue