Skip to content

Commit 6938107

Browse files
committed
Add [NGitLabRetry] on tests that had none
1 parent 5163408 commit 6938107

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: NGitLab.Tests/CommitStatusTests.cs

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public async Task Test_post_commit_status_with_no_coverage()
3232
}
3333

3434
[Test]
35+
[NGitLabRetry]
3536
public async Task Test_AddingSameCommitStatusTwice_Throws()
3637
{
3738
// Arrange
@@ -47,6 +48,7 @@ public async Task Test_AddingSameCommitStatusTwice_Throws()
4748
}
4849

4950
[Test]
51+
[NGitLabRetry]
5052
public async Task Test_AddingCommitStatusesWithDifferentNamesOnSameCommit_Succeeds()
5153
{
5254
// Arrange
@@ -90,6 +92,7 @@ public async Task Test_AddingCommitStatusesWithDifferentNamesOnSameCommit_Succee
9092
[TestCase(["pending", "running", "success"])]
9193
[TestCase(["pending", "running", "failed"])]
9294
[TestCase(["pending", "running", "canceled"])]
95+
[NGitLabRetry]
9396
public async Task Test_UpdatingCommitStatus_SucceedsIfTransitionSupported(params string[] successiveStates)
9497
{
9598
// Arrange
@@ -107,6 +110,7 @@ public async Task Test_UpdatingCommitStatus_SucceedsIfTransitionSupported(params
107110

108111
[TestCase(["whatever"])]
109112
[TestCase(["running", "pending"])]
113+
[NGitLabRetry]
110114
public async Task Test_UpdatingCommitStatus_FailsIfStateUnknownOrTransitionUnsupported(params string[] successiveStates)
111115
{
112116
// Arrange
@@ -133,6 +137,7 @@ public async Task Test_UpdatingCommitStatus_FailsIfStateUnknownOrTransitionUnsup
133137

134138
[TestCase("whatever", false)]
135139
[TestCase(null, true)] // Will set 'nameToLookUp' to a dynamically created name
140+
[NGitLabRetry]
136141
public async Task Test_QueryByName(string nameToLookUp, bool expectToFind)
137142
{
138143
// Arrange

0 commit comments

Comments
 (0)