Skip to content

Commit

Permalink
fix the naming issue in azure serviceClientTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinyuan Wan committed Apr 6, 2016
1 parent 39b4b19 commit d1ff941
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ describe('AzureServiceClient', function () {
resultOfInitialRequest.response.statusCode = 202;
resultOfInitialRequest.body.properties.provisioningState = LroStates.Succeeded;

it('works by polling from azure-asyncoperation header', function (done) {
it('works by polling from location header', function (done) {
resultOfInitialRequest.response.headers['azure-asyncoperation'] = '';
resultOfInitialRequest.response.headers['location'] = urlFromLocationHeader_Return200;
client.getPutOrPatchOperationResult(resultOfInitialRequest, function (err, result) {
Expand All @@ -171,7 +171,7 @@ describe('AzureServiceClient', function () {
});
});

it('works by polling from location header', function (done) {
it('works by polling from azure-asyncoperation header', function (done) {
resultOfInitialRequest.response.headers['azure-asyncoperation'] = urlFromAzureAsyncOPHeader_Return200;
resultOfInitialRequest.response.headers['location'] = '';
client.getPutOrPatchOperationResult(resultOfInitialRequest, function (err, result) {
Expand Down

0 comments on commit d1ff941

Please sign in to comment.