commit b54aaeba9b746d73f067077f6a953fd0e6e08893
parent 35e4b9ba63fad3aea0c63ce6874e08c461e415d4
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\"]",