Skip to content

Commit 8c4f361

Browse files
author
maddieclayton
committed
address comments
1 parent 98839c3 commit 8c4f361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ResourceManager/Profile/Commands.Profile.Test/LongRunningCmdletTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void CanHandleCmdletStop()
116116
if (job.JobStateInfo.State != JobState.Completed)
117117
{
118118
job.StopJob();
119-
this.jobCompleted.WaitOne();
119+
this.jobCompleted.WaitOne(TimeSpan.FromHours(4));
120120
Assert.Equal("Stopped", job.StatusMessage);
121121
}
122122

@@ -265,7 +265,7 @@ void WaitForCompletion(AzureLongRunningJob job, Action<AzureLongRunningJob> vali
265265
try
266266
{
267267
HandleStateChange(job, new JobStateEventArgs(job.JobStateInfo, new JobStateInfo(JobState.NotStarted)));
268-
jobCompleted.WaitOne();
268+
jobCompleted.WaitOne(TimeSpan.FromHours(4));
269269
validate(job);
270270
}
271271
finally

0 commit comments

Comments
 (0)