Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
fixed HTTP integration tests - trailing slashes were the issue (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb authored Nov 18, 2019
1 parent e2d28bb commit 59dd481
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public async Task HttpReporterShouldPostCorrectlyToZipkin()
resp2.IsSuccessStatusCode.Should().BeTrue(
$"Expected success status code, but instead found [{resp2.StatusCode}][{resp2.ReasonPhrase}]");

var fullUri = new Uri(_httpBaseUri, $"api/v2/trace/{traceId}/");
var fullUri = new Uri(_httpBaseUri, $"api/v2/trace/{traceId}");
HttpResponseMessage traceResp = null;
var retries = 3;
for (var i = 1; i <= retries; i++)
Expand Down Expand Up @@ -132,7 +132,7 @@ public async Task ShouldPostTraceToZipkin()
traceId = active.Span.Context.AsInstanceOf<IZipkinSpanContext>().TraceId;
}

var fullUri = new Uri(_httpBaseUri, $"api/v2/trace/{traceId}/");
var fullUri = new Uri(_httpBaseUri, $"api/v2/trace/{traceId}");
HttpResponseMessage traceResp = null;
var retries = 3;
for (var i = 1; i <= retries; i++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public async Task ShouldPostTraceToZipkin()
traceId = active.Span.Context.AsInstanceOf<IZipkinSpanContext>().TraceId;
}

var fullUri = new Uri(_httpBaseUri, $"api/v2/trace/{traceId}/");
var fullUri = new Uri(_httpBaseUri, $"api/v2/trace/{traceId}");

try
{
Expand Down

0 comments on commit 59dd481

Please sign in to comment.