refactor(client): remove redundant timestamp parameter from close method
This commit is contained in:
1 parent
023e85741a
commit
d8b580a19c
13 files changed
+69
-102
No files matched your search
@@ -77,7 +77,7 @@ fn hmac_close_packet_includes_valid_hmac() {
|
||||
config.server_addr = server.addr.to_string();
|
||||
let mut client = Client::connect(config).unwrap();
|
||||
assert_open_started(client.open().unwrap());
|
||||
client.close(ClientTimestamp::now()).unwrap();
|
||||
client.close().unwrap();
|
||||
let packets: Vec<_> = server.rx.iter().take(2).collect();
|
||||
let close = &packets[1];
|
||||
assert_eq!(close[3], flags::FLAG_CLOSE | FLAG_HMAC);
|
||||
|
||||
Reference in new issue
Block a user