Skip to content

Commit 14151cf

Browse files
a few code review changes: reverted package.config and switched sleep to testmocksupport.delay
1 parent 9b58000 commit 14151cf

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
using Microsoft.WindowsAzure.Storage;
2525
using Microsoft.WindowsAzure.Storage.Auth;
2626
using Microsoft.WindowsAzure.Storage.Blob;
27+
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2728
using System;
2829
using System.Collections.Generic;
2930
using System.IO;
@@ -485,8 +486,8 @@ public static PSCloudJob WaitForJobCompletion(BatchController controller, BatchA
485486
while (job.State != JobState.Completed || DateTime.Now > timeout)
486487
{
487488
job = client.ListJobs(new ListJobOptions(context)).First(cloudJob => cloudJob.Id == jobId);
488-
489-
Sleep(20000);
489+
490+
TestMockSupport.Delay(20000);
490491
}
491492

492493
return job;

src/ResourceManager/AzureBatch/Commands.Batch/packages.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<package id="Microsoft.Data.Services.Client" version="5.6.4" targetFramework="net45" />
1616
<package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="2.28.1" targetFramework="net45" />
1717
<package id="Microsoft.Net.Http" version="2.2.28" targetFramework="net45" />
18-
<package id="Microsoft.Rest.ClientRuntime" version="2.3.1" targetFramework="net45" />
19-
<package id="Microsoft.Rest.ClientRuntime.Azure" version="3.3.1" targetFramework="net45" />
20-
<package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.2.5-preview" targetFramework="net45" />
18+
<package id="Microsoft.Rest.ClientRuntime" version="2.3.2" targetFramework="net45" />
19+
<package id="Microsoft.Rest.ClientRuntime.Azure" version="3.3.2" targetFramework="net45" />
20+
<package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.2.8-preview" targetFramework="net45" />
2121
<package id="Microsoft.WindowsAzure.Management" version="4.1.1" targetFramework="net45" />
2222
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
2323
<package id="System.Spatial" version="5.6.4" targetFramework="net45" />

0 commit comments

Comments
 (0)