lan_bot: the status's protocol is the generated constant
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -307,7 +307,10 @@ fn status_and_join() {
|
||||
Ok(r.json)
|
||||
});
|
||||
let v: serde_json::Value = serde_json::from_str(&json).unwrap();
|
||||
assert_eq!(v["version"]["protocol"], 777);
|
||||
assert_eq!(
|
||||
v["version"]["protocol"],
|
||||
horizon_core::version::PROTOCOL_VERSION
|
||||
);
|
||||
// ServerStatus.CODEC writes a plain literal MOTD as a bare string.
|
||||
assert_eq!(v["description"], "Test - World");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user