Skip to content

Commit 3def3c8

Browse files
authored
Merge pull request #6204 from maddieclayton/fixLRT
Fix flaky long running operation test
2 parents 3914a72 + 8c4f361 commit 3def3c8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public LongRunningCmdletTests(ITestOutputHelper output)
4848
}
4949

5050
[Fact]
51-
[Trait(Category.AcceptanceType, Category.Flaky)]
51+
[Trait(Category.AcceptanceType, Category.CheckIn)]
5252
public void CanReceiveAllStreams()
5353
{
5454
Mock<ICommandRuntime> mockRuntime;
@@ -61,7 +61,7 @@ public void CanReceiveAllStreams()
6161
}
6262

6363
[Fact]
64-
[Trait(Category.AcceptanceType, Category.Flaky)]
64+
[Trait(Category.AcceptanceType, Category.CheckIn)]
6565
public void CanSupportShouldProcess()
6666
{
6767
Mock<ICommandRuntime> mockRuntime;
@@ -74,7 +74,7 @@ public void CanSupportShouldProcess()
7474
}
7575

7676
[Fact]
77-
[Trait(Category.AcceptanceType, Category.Flaky)]
77+
[Trait(Category.AcceptanceType, Category.CheckIn)]
7878
public void CanSupportShouldContinue()
7979
{
8080
Mock<ICommandRuntime> mockRuntime;
@@ -88,7 +88,7 @@ public void CanSupportShouldContinue()
8888
}
8989

9090
[Fact]
91-
[Trait(Category.AcceptanceType, Category.Flaky)]
91+
[Trait(Category.AcceptanceType, Category.CheckIn)]
9292
public void CanHandleCmdletException()
9393
{
9494
Mock<ICommandRuntime> mockRuntime;
@@ -103,7 +103,7 @@ public void CanHandleCmdletException()
103103
}
104104

105105
[Fact]
106-
[Trait(Category.AcceptanceType, Category.Flaky)]
106+
[Trait(Category.AcceptanceType, Category.CheckIn)]
107107
public void CanHandleCmdletStop()
108108
{
109109
Mock<ICommandRuntime> mockRuntime;
@@ -116,7 +116,7 @@ public void CanHandleCmdletStop()
116116
if (job.JobStateInfo.State != JobState.Completed)
117117
{
118118
job.StopJob();
119-
this.jobCompleted.WaitOne(TimeSpan.FromSeconds(10));
119+
this.jobCompleted.WaitOne(TimeSpan.FromHours(4));
120120
Assert.Equal("Stopped", job.StatusMessage);
121121
}
122122

@@ -129,7 +129,7 @@ public void CanHandleCmdletStop()
129129

130130

131131
[Fact]
132-
[Trait(Category.AcceptanceType, Category.Flaky)]
132+
[Trait(Category.AcceptanceType, Category.CheckIn)]
133133
public void CanHandleShouldProcessExceptionForConfirm()
134134
{
135135
Mock<ICommandRuntime> mockRuntime;
@@ -145,7 +145,7 @@ public void CanHandleShouldProcessExceptionForConfirm()
145145
}
146146

147147
[Fact]
148-
[Trait(Category.AcceptanceType, Category.Flaky)]
148+
[Trait(Category.AcceptanceType, Category.CheckIn)]
149149
public void CanHandleShouldProcessExceptionForWhatIf()
150150
{
151151
Mock<ICommandRuntime> mockRuntime;
@@ -162,7 +162,7 @@ public void CanHandleShouldProcessExceptionForWhatIf()
162162
}
163163

164164
[Fact]
165-
[Trait(Category.AcceptanceType, Category.Flaky)]
165+
[Trait(Category.AcceptanceType, Category.CheckIn)]
166166
public void CanHandleShouldContinueException()
167167
{
168168
Mock<ICommandRuntime> mockRuntime;
@@ -177,7 +177,7 @@ public void CanHandleShouldContinueException()
177177
}
178178

179179
[Fact]
180-
[Trait(Category.AcceptanceType, Category.Flaky)]
180+
[Trait(Category.AcceptanceType, Category.CheckIn)]
181181
public void JobCopiesCmdletParameterSet()
182182
{
183183
Mock<ICommandRuntime> mock = new Mock<ICommandRuntime>();
@@ -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-
this.jobCompleted.WaitOne(TimeSpan.FromSeconds(30));
268+
jobCompleted.WaitOne(TimeSpan.FromHours(4));
269269
validate(job);
270270
}
271271
finally

0 commit comments

Comments
 (0)