aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/interop/interop_server.js
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2016-06-23 10:54:52 -0700
committerGravatar murgatroid99 <mlumish@google.com>2016-06-23 10:54:52 -0700
commit5fec4bf5f34792e30d2691024cbd9914626db0a3 (patch)
treee1e07586bc1745c32139011fde6c7fe4e61812a7 /src/node/interop/interop_server.js
parente16907e5a1fb7e61b24d4d141cbad021e96252bf (diff)
parentb309bc94bfd3bdd067e4f0a62d0cd9f29cf3a288 (diff)
Merge branch 'master' into grpc_trace_granularity
Diffstat (limited to 'src/node/interop/interop_server.js')
-rw-r--r--src/node/interop/interop_server.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/node/interop/interop_server.js b/src/node/interop/interop_server.js
index 7280762305..05f52a1083 100644
--- a/src/node/interop/interop_server.js
+++ b/src/node/interop/interop_server.js
@@ -45,9 +45,6 @@ var testProto = grpc.load({
var ECHO_INITIAL_KEY = 'x-grpc-test-echo-initial';
var ECHO_TRAILING_KEY = 'x-grpc-test-echo-trailing-bin';
-var incompressible_data = fs.readFileSync(
- __dirname + '/../../../test/cpp/interop/rnd.dat');
-
/**
* Create a buffer filled with size zeroes
* @param {number} size The length of the buffer
@@ -88,15 +85,7 @@ function getEchoTrailer(call) {
}
function getPayload(payload_type, size) {
- if (payload_type === 'RANDOM') {
- payload_type = ['COMPRESSABLE',
- 'UNCOMPRESSABLE'][Math.random() < 0.5 ? 0 : 1];
- }
- var body;
- switch (payload_type) {
- case 'COMPRESSABLE': body = zeroBuffer(size); break;
- case 'UNCOMPRESSABLE': incompressible_data.slice(size); break;
- }
+ var body = zeroBuffer(size);
return {type: payload_type, body: body};
}