aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-03-25 16:26:39 -0700
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-03-25 16:26:39 -0700
commitf3d76384351039266e250aacf97c90d5b0c07dca (patch)
treebd4bb4f5f350d1f340b2ee547bfb47f590f9e946 /test
parentf6a87f89129b2b188e35bce1759a7617cf2ceed1 (diff)
parentb830fb3a039decb2307d7ae6ff2d4a6ba2c04a5a (diff)
Merge pull request #5877 from vjpai/make_generic_payloads_great_again
Properly set server payload config in QPS tests
Diffstat (limited to 'test')
-rw-r--r--test/cpp/qps/generic_async_streaming_ping_pong_test.cc1
-rw-r--r--test/cpp/qps/qps_driver.cc4
2 files changed, 5 insertions, 0 deletions
diff --git a/test/cpp/qps/generic_async_streaming_ping_pong_test.cc b/test/cpp/qps/generic_async_streaming_ping_pong_test.cc
index 77ed11f287..fc06cddfef 100644
--- a/test/cpp/qps/generic_async_streaming_ping_pong_test.cc
+++ b/test/cpp/qps/generic_async_streaming_ping_pong_test.cc
@@ -62,6 +62,7 @@ static void RunGenericAsyncStreamingPingPong() {
ServerConfig server_config;
server_config.set_server_type(ASYNC_GENERIC_SERVER);
server_config.set_async_server_threads(1);
+ *server_config.mutable_payload_config() = client_config.payload_config();
const auto result =
RunScenario(client_config, 1, server_config, 1, WARMUP, BENCHMARK, -2);
diff --git a/test/cpp/qps/qps_driver.cc b/test/cpp/qps/qps_driver.cc
index 69fb4d75e8..f9bd01b2a1 100644
--- a/test/cpp/qps/qps_driver.cc
+++ b/test/cpp/qps/qps_driver.cc
@@ -171,6 +171,10 @@ static void QpsDriver() {
server_config.set_core_limit(FLAGS_server_core_limit);
}
+ if (FLAGS_bbuf_resp_size >= 0) {
+ *server_config.mutable_payload_config() = client_config.payload_config();
+ }
+
if (FLAGS_secure_test) {
// Set up security params
SecurityParams security;