Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Aug 19, 2015
1 parent fe0afc2 commit 6b3737d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/node/interop/interop_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ function getServer(port, tls) {
var key_data = fs.readFileSync(key_path);
var pem_data = fs.readFileSync(pem_path);
server_creds = grpc.ServerCredentials.createSsl(null,
{private_key: key_data,
cert_chain: pem_data});
[{private_key: key_data,
cert_chain: pem_data}]);
} else {
server_creds = grpc.ServerCredentials.createInsecure();
}
Expand Down
4 changes: 2 additions & 2 deletions src/node/test/server_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ describe('server', function() {
var key_data = fs.readFileSync(key_path);
var pem_data = fs.readFileSync(pem_path);
var creds = grpc.ServerCredentials.createSsl(null,
{private_key: key_data,
cert_chain: pem_data});
[{private_key: key_data,
cert_chain: pem_data}]);
assert.doesNotThrow(function() {
port = server.addHttp2Port('0.0.0.0:0', creds);
});
Expand Down

0 comments on commit 6b3737d

Please sign in to comment.