cultnet-rs: a one-change commit announcement is a single change, as in the C# client
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
678f058aae
commit
1e3bedbd41
1 changed files with 7 additions and 0 deletions
|
|
@ -370,3 +370,10 @@ fn the_csharp_session_drives_the_assembler_to_a_snapshot_and_three_commits() {
|
|||
let SubscriptionEvent::Commit { changes, .. } = &events[3] else { unreachable!() };
|
||||
assert_eq!(changes[0].kind, DatabaseChangeKind::Removed);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_commit_that_announces_one_change_is_a_single_change_not_a_buffered_commit() {
|
||||
let mut assembler = live("sub");
|
||||
let events = assembler.accept(change("a", "sub", "k1", Some(("c", 1))));
|
||||
assert_eq!(keys(&events[0]), ["k1"], "C# treats commitCount <= 1 as no commit");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue