From 8ef43bd7c845136c971aa1ea1f29586e724e206e Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Mon, 7 Dec 2015 09:55:22 -0800 Subject: [PATCH] update location of .protos in node --- src/node/health_check/health.js | 3 ++- src/node/test/async_test.js | 2 +- src/node/test/math/math_server.js | 3 ++- src/node/test/math_client_test.js | 2 +- src/node/test/surface_test.js | 3 ++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/node/health_check/health.js b/src/node/health_check/health.js index 84d7e0568e5..1a2c0366875 100644 --- a/src/node/health_check/health.js +++ b/src/node/health_check/health.js @@ -37,7 +37,8 @@ var grpc = require('../'); var _ = require('lodash'); -var health_proto = grpc.load(__dirname + '/health.proto'); +var health_proto = grpc.load(__dirname + + '/../../proto/grpc/health/v1alpha/health.proto'); var HealthClient = health_proto.grpc.health.v1alpha.Health; diff --git a/src/node/test/async_test.js b/src/node/test/async_test.js index 0af63c379e1..c46e745116e 100644 --- a/src/node/test/async_test.js +++ b/src/node/test/async_test.js @@ -36,7 +36,7 @@ var assert = require('assert'); var grpc = require('..'); -var math = grpc.load(__dirname + '/math/math.proto').math; +var math = grpc.load(__dirname + '/../../proto/math/math.proto').math; /** diff --git a/src/node/test/math/math_server.js b/src/node/test/math/math_server.js index 9d06596f3d3..9f67c52ab0c 100644 --- a/src/node/test/math/math_server.js +++ b/src/node/test/math/math_server.js @@ -34,7 +34,8 @@ 'use strict'; var grpc = require('../..'); -var math = grpc.load(__dirname + '/math.proto').math; +var math = grpc.load(__dirname + '/../../../proto/math/math.proto').math; + /** * Server function for division. Provides the /Math/DivMany and /Math/Div diff --git a/src/node/test/math_client_test.js b/src/node/test/math_client_test.js index 6361d97857a..3d446105364 100644 --- a/src/node/test/math_client_test.js +++ b/src/node/test/math_client_test.js @@ -36,7 +36,7 @@ var assert = require('assert'); var grpc = require('..'); -var math = grpc.load(__dirname + '/math/math.proto').math; +var math = grpc.load(__dirname + '/../../proto/math/math.proto').math; /** * Client to use to make requests to a running server. diff --git a/src/node/test/surface_test.js b/src/node/test/surface_test.js index 523fda6849d..fc765ed7314 100644 --- a/src/node/test/surface_test.js +++ b/src/node/test/surface_test.js @@ -41,7 +41,8 @@ var ProtoBuf = require('protobufjs'); var grpc = require('..'); -var math_proto = ProtoBuf.loadProtoFile(__dirname + '/math/math.proto'); +var math_proto = ProtoBuf.loadProtoFile(__dirname + + '/../../proto/math/math.proto'); var mathService = math_proto.lookup('math.Math');