Skip to content

Commit 3c7a073

Browse files
committed
Another fix for test runs without results
1 parent ba59a1e commit 3c7a073

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

ReleaseNotes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.2
2+
3+
- [Fix] Another fix for test runs without any results
4+
15
# 1.0.1
26

37
- [Fix] Makes sure not to end test runs that didn't send any results

src/AzurePipelines.TestLogger/LoggerQueue.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,15 @@ private async Task SendTestsCompleted(CancellationToken cancellationToken)
301301
""completedDate"": ""{completedDate}""
302302
}}")) + " ]";
303303
await _apiClient.SendAsync(new HttpMethod("PATCH"), TestRunEndpoint, "5.0-preview.5", parentRequest, cancellationToken).ConfigureAwait(false);
304-
}
305304

306-
// Mark the overall test run as completed
307-
string testRunRequest = $@"{{
308-
""state"": ""Completed"",
309-
""startedDate"": ""{StartedDate.ToString("yyyy-MM-ddTHH:mm:ss.FFFZ")}"",
310-
""completedDate"": ""{completedDate}""
311-
}}";
312-
await _apiClient.SendAsync(new HttpMethod("PATCH"), $"/{RunId}", "5.0-preview.2", testRunRequest, cancellationToken).ConfigureAwait(false);
305+
// Mark the overall test run as completed
306+
string testRunRequest = $@"{{
307+
""state"": ""Completed"",
308+
""startedDate"": ""{StartedDate.ToString("yyyy-MM-ddTHH:mm:ss.FFFZ")}"",
309+
""completedDate"": ""{completedDate}""
310+
}}";
311+
await _apiClient.SendAsync(new HttpMethod("PATCH"), $"/{RunId}", "5.0-preview.2", testRunRequest, cancellationToken).ConfigureAwait(false);
312+
}
313313
}
314314
}
315315
}

0 commit comments

Comments
 (0)