aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-08-27 10:02:00 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-08-27 10:02:00 -0700
commite634f9afdf86df6e89e9a4722b956bd6154b41b0 (patch)
treeba05d692585d95d3fd540a3cbad65fb962c7b7f5 /src/node
parent1eb113c61ed87dbc12d9e76649e206190ccd3c4a (diff)
Fixed the tests
Diffstat (limited to 'src/node')
-rw-r--r--src/node/interop/interop_client.js8
-rw-r--r--src/node/interop/interop_server.js4
-rw-r--r--src/node/test/interop_sanity_test.js2
3 files changed, 7 insertions, 7 deletions
diff --git a/src/node/interop/interop_client.js b/src/node/interop/interop_client.js
index 14ae045275..7945ab190e 100644
--- a/src/node/interop/interop_client.js
+++ b/src/node/interop/interop_client.js
@@ -49,8 +49,8 @@ var AUTH_USER = ('155450119199-3psnrh1sdr3d8cpj1v46naggf81mhdnk' +
var COMPUTE_ENGINE_USER = ('155450119199-r5aaqa2vqoa9g5mv2m6s3m1l293rlmel' +
'@developer.gserviceaccount.com');
-var ECHO_INITIAL_KEY = "x-grpc-test-echo-initial";
-var ECHO_TRAILING_KEY = "x-grpc-test-echo-trailing-bin";
+var ECHO_INITIAL_KEY = 'x-grpc-test-echo-initial';
+var ECHO_TRAILING_KEY = 'x-grpc-test-echo-trailing-bin';
/**
* Create a buffer filled with size zeroes
@@ -324,7 +324,7 @@ function customMetadata(client, done) {
unary.on('status', function(status) {
var echo_trailer = status.metadata.get(ECHO_TRAILING_KEY);
assert(echo_trailer.length > 0);
- assert.strictEqual(echo_trailer.toString('hex'), 'ababab');
+ assert.strictEqual(echo_trailer[0].toString('hex'), 'ababab');
done();
});
var stream = client.fullDuplexCall(metadata);
@@ -336,7 +336,7 @@ function customMetadata(client, done) {
stream.on('status', function(status) {
var echo_trailer = status.metadata.get(ECHO_TRAILING_KEY);
assert(echo_trailer.length > 0);
- assert.strictEqual(echo_trailer.toString('hex'), 'ababab');
+ assert.strictEqual(echo_trailer[0].toString('hex'), 'ababab');
done();
});
stream.write(streaming_arg);
diff --git a/src/node/interop/interop_server.js b/src/node/interop/interop_server.js
index c23f237680..762e670013 100644
--- a/src/node/interop/interop_server.js
+++ b/src/node/interop/interop_server.js
@@ -39,8 +39,8 @@ var _ = require('lodash');
var grpc = require('..');
var testProto = grpc.load(__dirname + '/test.proto').grpc.testing;
-var ECHO_INITIAL_KEY = "x-grpc-test-echo-initial";
-var ECHO_TRAILING_KEY = "x-grpc-test-echo-trailing-bin";
+var ECHO_INITIAL_KEY = 'x-grpc-test-echo-initial';
+var ECHO_TRAILING_KEY = 'x-grpc-test-echo-trailing-bin';
/**
* Create a buffer filled with size zeroes
diff --git a/src/node/test/interop_sanity_test.js b/src/node/test/interop_sanity_test.js
index d7b6f3316c..804c1d45e4 100644
--- a/src/node/test/interop_sanity_test.js
+++ b/src/node/test/interop_sanity_test.js
@@ -90,7 +90,7 @@ describe('Interop tests', function() {
interop_client.runTest(port, name_override, 'timeout_on_sleeping_server',
true, true, done);
});
- it.only('should pass custom_metadata', function(done) {
+ it('should pass custom_metadata', function(done) {
interop_client.runTest(port, name_override, 'custom_metadata',
true, true, done);
});