commit 91e88275889d008ecefa9d7cdcb4b261c7a09c57
parent 60eab9d6947a9cdfc7e11f6e8d97cf5d130e6604
Author: triesap <tyson@radroots.org>
Date: Mon, 15 Jun 2026 04:47:03 -0700
tests: cover unsupported negentropy command parity
- add explicit NEG-OPEN websocket rejection coverage
- keep negentropy unimplemented and unadvertised
- reuse the Chorus malformed command parity test
- preserve unsupported command NOTICE behavior
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/crates/tangle_runtime/src/session.rs b/crates/tangle_runtime/src/session.rs
@@ -563,6 +563,10 @@ mod tests {
Some("[\"NOTICE\",\"invalid: client message command `NOTICE` is unsupported\"]"),
),
(
+ "[\"NEG-OPEN\",\"sub\",{}]",
+ Some("[\"NOTICE\",\"invalid: client message command `NEG-OPEN` is unsupported\"]"),
+ ),
+ (
"[\"REQ\"]",
Some(
"[\"NOTICE\",\"invalid: REQ client message must contain a subscription id and filters\"]",