Fix test.

GitOrigin-RevId: 6f2a9eec68042949d10d8a4513d176e57f603146
This commit is contained in:
levlam 2020-01-30 04:06:15 +03:00
parent c2bd1ef4b0
commit c99103afce
2 changed files with 5 additions and 1 deletions

View File

@ -79,6 +79,10 @@ class AuthKeyHandshake {
void clear();
const AuthKey &get_auth_key() const {
return auth_key_;
}
AuthKey release_auth_key() {
return std::move(auth_key_);
}

View File

@ -564,7 +564,7 @@ class FastPingTestActor : public Actor {
unique_ptr<mtproto::AuthData> auth_data;
if (iteration_ % 2 == 0) {
auth_data = make_unique<mtproto::AuthData>();
auth_data->set_tmp_auth_key(handshake_->release_auth_key());
auth_data->set_tmp_auth_key(handshake_->get_auth_key());
auth_data->set_server_time_difference(handshake_->get_server_time_diff());
auth_data->set_server_salt(handshake_->get_server_salt(), Time::now());
auth_data->set_future_salts({mtproto::ServerSalt{0u, 1e20, 1e30}}, Time::now());