Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
daveaglick committed Dec 12, 2018
1 parent ad99f51 commit 3ccac75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.2.0
# 0.2.1

- [Fix] Big refactoring to create a new test run before posting results

Expand Down
4 changes: 3 additions & 1 deletion src/PipelinesTestLogger/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public ApiClient(string accessToken, string collectionUri, string teamProject)
public async Task<JsonObject> PostAsync(string json, CancellationToken cancellationToken, string endpoint = null)
{
HttpContent content = new StringContent(json, Encoding.UTF8, "application/json");
HttpResponseMessage response = await _client.PostAsync($"{ _baseUrl }{ endpoint }?api-version={ ApiVersion }", content, cancellationToken);
string requestUri = $"{ _baseUrl }{ endpoint }?api-version={ ApiVersion }";
Console.WriteLine("POST" + Environment.NewLine + requestUri + Environment.NewLine + json);
HttpResponseMessage response = await _client.PostAsync(requestUri, content, cancellationToken);
response.EnsureSuccessStatusCode();
string responseString = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
using (StringReader sr = new StringReader(responseString))
Expand Down

0 comments on commit 3ccac75

Please sign in to comment.