mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
udp: fix test_connection_validator
This commit is contained in:
parent
d7ebf5e546
commit
f4ef9fcfc9
1 changed files with 5 additions and 1 deletions
|
|
@ -156,6 +156,10 @@ mod tests {
|
|||
return quickcheck::TestResult::failed();
|
||||
}
|
||||
|
||||
quickcheck::TestResult::from_bool(original_valid)
|
||||
if max_connection_age == 0 {
|
||||
quickcheck::TestResult::from_bool(!original_valid)
|
||||
} else {
|
||||
quickcheck::TestResult::from_bool(original_valid)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue