diff --git a/types/src/version.rs b/types/src/version.rs index 8ec6a5f..5c9b9b9 100644 --- a/types/src/version.rs +++ b/types/src/version.rs @@ -129,7 +129,7 @@ mod tests { assert_eq!(DelegateVersion::V1 as u8, 1); assert_eq!(DelegateVersion::V1.to_string(), "V1"); assert_eq!(DelegateVersion::try_from(1), Ok(DelegateVersion::V1)); - assert_eq!(DelegateVersion::try_from(1), Err(UnknownDelegateVersion(1))); + assert_eq!(DelegateVersion::try_from(2), Err(UnknownDelegateVersion(2))); } #[test] @@ -137,6 +137,6 @@ mod tests { assert_eq!(ProtocolVersion::V1 as u8, 1); assert_eq!(ProtocolVersion::V1.to_string(), "V1"); assert_eq!(ProtocolVersion::try_from(1), Ok(ProtocolVersion::V1)); - assert_eq!(ProtocolVersion::try_from(1), Err(UnknownProtocolVersion(1))); + assert_eq!(ProtocolVersion::try_from(2), Err(UnknownProtocolVersion(2))); } }