diff options
author | David G. Quintas <dgq@google.com> | 2016-11-02 00:35:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-02 00:35:38 +0100 |
commit | 00bbb4122a8875876eb3075c32585fe296d5ba85 (patch) | |
tree | 1d53e45297b01e5c2c77cc42f46ca38ded12553e /test | |
parent | 5998461c3d017a9d5a216ad1920ccf040032963b (diff) | |
parent | d14458f5894444aeaf3793d29d3c3d299493ecd1 (diff) |
Merge pull request #8548 from dgquintas/lb-tokens-length
Made LB token dynamic size <= 50 bytes
Diffstat (limited to 'test')
-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())); |