authorclover caruso <git@paperclover.net> 2026-10-10 20:55:50-07:00
committerclover caruso <git@paperclover.net> 2026-10-10 22:56:06-07:00
log0a2c80e2cfc2b9470ace4d6e4b752bc34c6dd7f9
treec3b107f6b986c59ae8de644be3c31f6a127729df
parentdf13004a44f732cd9b90dbbc7e40afca421eaf36
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU (~clover)

test: await the held section edit receipt before reading its queue

Section::apply submits work without waiting; written establishes the durable queue boundary before status assertions. Refs #117 Assisted-by: gpt-6.1-sol

1 files changed, 1 insertions(+), 0 deletions(-)

crates/notebook/src/background.rs+1
...@@ -1518,6 +1518,7 @@ mod tests {...@@ -1518,6 +1518,7 @@ mod tests {
1518 },1518 },
1519 )1519 )
1520 .unwrap();1520 .unwrap();
1521 section.written().unwrap();
1521 let pending = section.pending().unwrap();1522 let pending = section.pending().unwrap();
1522 assert_eq!(pending.len(), 1);1523 assert_eq!(pending.len(), 1);
1523 let status = background.status().remove(0).1;1524 let status = background.status().remove(0).1;