You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert.That(context.Client.GetRepository(project.Id).Branches[mergeRequest.SourceBranch].Protected,Is.False,"The source branch is protected but should not be");
38
38
39
-
TestContext.WriteLine("MR is ready to be merged");
39
+
TestContext.Out.WriteLine("MR is ready to be merged");
varallJobs=awaitGitLabTestContext.RetryUntilAsync(()=>pipelineClient.GetJobsAsync(pipelineJobQuery).ToList(), p =>p.Any(),TimeSpan.FromSeconds(120));
95
-
Assert.That(allJobs.Any());
94
+
varallJobs=awaitGitLabTestContext.RetryUntilAsync(()=>pipelineClient.GetJobsAsync(pipelineJobQuery).ToList(), p =>p.Count!=0,TimeSpan.FromSeconds(120));
95
+
Assert.That(allJobs.Count!=0);
96
96
}
97
97
98
98
[Test]
@@ -108,9 +108,9 @@ public async Task Test_search_for_pipeline()
108
108
{
109
109
Ref=project.DefaultBranch,
110
110
};
111
-
varpipelinesFromQuery=awaitGitLabTestContext.RetryUntilAsync(()=>pipelineClient.Search(query).ToList(), p =>p.Any(),TimeSpan.FromSeconds(120));
111
+
varpipelinesFromQuery=awaitGitLabTestContext.RetryUntilAsync(()=>pipelineClient.Search(query).ToList(), p =>p.Count!=0,TimeSpan.FromSeconds(120));
112
112
113
-
Assert.That(pipelinesFromQuery.Any(),Is.True);
113
+
Assert.That(pipelinesFromQuery.Count!=0,Is.True);
114
114
}
115
115
116
116
[Test]
@@ -245,7 +245,7 @@ public async Task Test_retry()
0 commit comments