diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-18 08:33:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-18 08:33:13 -0400 |
commit | 52191064acbddabf979c5f3b3f0813c105ce82f3 (patch) | |
tree | 57715466d83725c1f965a270205fb7e39756f983 /src/rust/protover/tests | |
parent | 4199c8b2d0d53b7c906943e5f844aafa57b9047d (diff) | |
parent | 2ddbaf9cdc3c850a56ef1f3bf6977c903e24bb39 (diff) | |
download | tor-52191064acbddabf979c5f3b3f0813c105ce82f3.tar.gz tor-52191064acbddabf979c5f3b3f0813c105ce82f3.zip |
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/rust/protover/tests')
-rw-r--r-- | src/rust/protover/tests/protover.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rust/protover/tests/protover.rs b/src/rust/protover/tests/protover.rs index 5d6c2c9e70..86e276cf73 100644 --- a/src/rust/protover/tests/protover.rs +++ b/src/rust/protover/tests/protover.rs @@ -364,18 +364,18 @@ fn protover_all_supported_should_exclude_some_versions_and_entire_protocols() { #[test] fn protover_all_supported_should_not_dos_anyones_computer() { - let proto: UnvalidatedProtoEntry = "Sleen=1-2147483648".parse().unwrap(); + let proto: UnvalidatedProtoEntry = "Link=1-2147483648".parse().unwrap(); let result: String = proto.all_supported().unwrap().to_string(); - assert_eq!(result, "Sleen=1-2147483648".to_string()); + assert_eq!(result, "Link=6-2147483648".to_string()); } #[test] fn protover_all_supported_should_not_dos_anyones_computer_max_versions() { - let proto: UnvalidatedProtoEntry = "Sleen=1-4294967294".parse().unwrap(); + let proto: UnvalidatedProtoEntry = "Link=1-4294967294".parse().unwrap(); let result: String = proto.all_supported().unwrap().to_string(); - assert_eq!(result, "Sleen=1-4294967294".to_string()); + assert_eq!(result, "Link=6-4294967294".to_string()); } #[test] |