There was an error while loading. Please reload this page.
1 parent 448febc commit 819ff3eCopy full SHA for 819ff3e
1 file changed
crates/renderide-shared/src/ipc/connection.rs
@@ -528,9 +528,12 @@ mod tests {
528
529
#[test]
530
fn parse_attach_renderer_packet_rejects_nonce_mismatch() {
531
+ let mut wrong_nonce = TEST_NONCE.to_vec();
532
+ wrong_nonce[0] ^= 0xff;
533
+
534
let error = parse_attach_renderer_packet(
535
&attach_packet("RenderideQueue", 8_388_608),
- Some(b"fedcba9876543210"),
536
+ Some(&wrong_nonce),
537
)
538
.expect_err("wrong nonce should be rejected");
539
assert!(matches!(error, AttachConnectionError::NonceMismatch));
0 commit comments