diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-13 14:40:00 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-13 14:40:00 +0300 |
| commit | f7b6467afead67cf3bfcb4d3cd8e411738e7eac8 (patch) | |
| tree | 11cf0ec9447af9aea39e091913228665dd4aea57 | |
| parent | 4600309051e5d6bea1f64e72cec585b102117ce5 (diff) | |
test: update api ping protocol version
| -rw-r--r-- | tests/api_ping.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/api_ping.rs b/tests/api_ping.rs index b1282c56..8abaf267 100644 --- a/tests/api_ping.rs +++ b/tests/api_ping.rs @@ -225,7 +225,9 @@ fn ping_over_socket_returns_version() { assert_eq!(value["id"], "req_1"); assert_eq!(value["result"]["type"], "pong"); assert_eq!(value["result"]["version"], env!("CARGO_PKG_VERSION")); - assert_eq!(value["result"]["protocol"], 4); + // Intentionally hardcoded so wire protocol bumps require updating this test. + // Changing this value means old clients/servers are no longer compatible. + assert_eq!(value["result"]["protocol"], 5); cleanup_spawned_herdr(child, base); } |
