diff options
author | David Garcia Quintas <dgq@google.com> | 2016-10-28 04:44:01 +0200 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-10-28 04:51:28 +0200 |
commit | 0baf1dc569a112bc71039b84bdaef0bad68cf852 (patch) | |
tree | 15a76c9ef5ba9df2a192b79376430d066055ff02 /test/cpp | |
parent | c5d447eb30814377c4be4d514524b48a36589015 (diff) |
Made LB token dynamic size <= 50 bytes
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/grpclb/grpclb_test.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/cpp/grpclb/grpclb_test.cc b/test/cpp/grpclb/grpclb_test.cc index b6056f9ae4..d788240438 100644 --- a/test/cpp/grpclb/grpclb_test.cc +++ b/test/cpp/grpclb/grpclb_test.cc @@ -144,7 +144,6 @@ static gpr_slice build_response_payload_slice( // disfunctional implementation of std::to_string in gcc 4.4, which doesn't // have a version for int but does have one for long long int. string token_data = "token" + std::to_string((long long int)ports[i]); - token_data.resize(64, '-'); server->set_load_balance_token(token_data); } const grpc::string &enc_resp = response.SerializeAsString(); @@ -333,7 +332,6 @@ static void start_backend_server(server_fixture *sf) { // disfunctional implementation of std::to_string in gcc 4.4, which doesn't // have a version for int but does have one for long long int. string expected_token = "token" + std::to_string((long long int)sf->port); - expected_token.resize(64, '-'); GPR_ASSERT(contains_metadata(&request_metadata_recv, "lb-token", expected_token.c_str())); |