Skip to content

Commit

Permalink
test: Add Retry option for unit test that crashes on pipeline due to …
Browse files Browse the repository at this point in the history
…lack of resources
  • Loading branch information
aneojgurhem committed Jan 24, 2025
1 parent 9d304cf commit 6b712e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Common/tests/Pollster/PollsterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ await Task.Delay(TimeSpan.FromMilliseconds(delay_),

[Test]
[Timeout(10000)]
[Retry(3)]
public async Task ExecuteTaskShouldSucceed()
{
var mockPullQueueStorage = new SimplePullQueueStorageChannel();
Expand Down Expand Up @@ -494,6 +495,7 @@ await testServiceProvider.TaskTable.GetTaskStatus(taskSubmitted,

[Test]
[Timeout(10000)]
[Retry(3)]
public async Task ExecuteTaskTimeoutAcquire()
{
var mockPullQueueStorage = new SimplePullQueueStorageChannel();
Expand Down Expand Up @@ -600,6 +602,7 @@ await testServiceProvider.TaskTable.GetTaskStatus(taskSubmitted2,

[Test]
[Timeout(10000)]
[Retry(3)]
public async Task ExecuteTaskThatExceedsGraceDelayShouldResubmit()
{
var mockPullQueueStorage = new SimplePullQueueStorageChannel();
Expand Down

0 comments on commit 6b712e6

Please sign in to comment.