From 2c8e8cf6c20711eec44a3424091cd6a60b20942c Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 11 Jan 2019 12:15:37 -0800 Subject: [PATCH] Fix unit tests --- runtime/ms-rest-azure/.vscode/launch.json | 4 ++-- .../ms-rest-azure/test/msiAppServiceTokenCredentialTests.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/ms-rest-azure/.vscode/launch.json b/runtime/ms-rest-azure/.vscode/launch.json index 517c9f2dc..e66c99fee 100644 --- a/runtime/ms-rest-azure/.vscode/launch.json +++ b/runtime/ms-rest-azure/.vscode/launch.json @@ -5,7 +5,7 @@ "type": "node", "request": "launch", "name": "Mocha All", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", + "program": "${workspaceFolder}/../../node_modules/mocha/bin/_mocha", "args": [ "--timeout", "999999", @@ -19,7 +19,7 @@ "type": "node", "request": "launch", "name": "Mocha Current File", - "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", + "program": "${workspaceFolder}/../../node_modules/mocha/bin/_mocha", "args": [ "--timeout", "999999", diff --git a/runtime/ms-rest-azure/test/msiAppServiceTokenCredentialTests.js b/runtime/ms-rest-azure/test/msiAppServiceTokenCredentialTests.js index a4080e89e..0a6bf5f54 100644 --- a/runtime/ms-rest-azure/test/msiAppServiceTokenCredentialTests.js +++ b/runtime/ms-rest-azure/test/msiAppServiceTokenCredentialTests.js @@ -31,7 +31,7 @@ describe('MSI App Service Authentication', function () { if (!error) { interceptor.reply(200, response); } else { - interceptor.replyWithError(error); + interceptor.reply(400, error); } }