Skip to content

Commit 0c080bd

Browse files
author
begoldsm
committed
Address Hovsep comments.
1 parent fb394f3 commit 0c080bd

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/Common/Commands.Common.Authentication/Factories/ClientFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ public virtual TClient CreateClient<TClient>(AzureSMProfile profile, AzureEnviro
130130
/// <exception cref="System.ArgumentException">
131131
/// accountName
132132
/// or
133+
/// environment
133134
/// </exception>
134135
public virtual TClient CreateClient<TClient>(AzureSMProfile profile, AzureSubscription subscription, AzureEnvironment.Endpoint endpoint) where TClient : ServiceClient<TClient>
135136
{

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/WaitAzureRmDataLakeAnalyticsJob.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using Microsoft.Azure.Management.DataLake.Analytics.Models;
2121
using Microsoft.Rest.Azure;
2222
using JobState = Microsoft.Azure.Management.DataLake.Analytics.Models.JobState;
23+
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2324

2425
namespace Microsoft.Azure.Commands.DataLakeAnalytics
2526
{
@@ -68,7 +69,7 @@ public override void ExecuteCmdlet()
6869
}
6970

7071
WriteVerboseWithTimestamp(string.Format(Resources.WaitJobState, jobInfo.State));
71-
Thread.Sleep(WaitIntervalInSeconds*1000);
72+
TestMockSupport.Delay(WaitIntervalInSeconds*1000);
7273
timeWaitedInSeconds += WaitIntervalInSeconds;
7374
jobInfo = DataLakeAnalyticsClient.GetJob(Account, JobId);
7475
}

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Models/DataLakeStoreFileSystemClient.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
using Microsoft.Azure.Management.DataLake.Store.Models;
2929
using Microsoft.Azure.Management.DataLake.StoreUploader;
3030
using Microsoft.Rest.Azure;
31+
using Microsoft.WindowsAzure.Commands.Utilities.Common;
3132

3233
namespace Microsoft.Azure.Commands.DataLakeStore.Models
3334
{
@@ -574,7 +575,7 @@ public void CopyDirectory(
574575
}
575576

576577
// sleep for a half of a second.
577-
Thread.Sleep(500);
578+
TestMockSupport.Delay(500);
578579
}
579580

580581
if (task.IsFaulted && !task.IsCanceled)
@@ -792,7 +793,7 @@ private void TrackUploadProgress(Task uploadTask, ProgressRecord uploadProgress,
792793
}
793794
}
794795

795-
Thread.Sleep(250);
796+
TestMockSupport.Delay(250);
796797
}
797798

798799
if (uploadTask.IsCanceled || token.IsCancellationRequested)

0 commit comments

Comments
 (0)