Skip to content

Commit a860eaf

Browse files
committed
- Minor test cleanup
1 parent 2f6bc78 commit a860eaf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

EasyVCR.Tests/ClientTest.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ public async Task TestMatchEmptyStringBodyToNonEmptyStringBody()
522522
const string url = "https://httpbin.org/post";
523523

524524
var client = HttpClients.NewHttpClient(cassette, Mode.Record);
525-
var someContent = new ByteArrayContent(Encoding.UTF8.GetBytes("whatevs"));
525+
var someContent = new ByteArrayContent(Encoding.UTF8.GetBytes("non_empty_string_body"));
526526
_ = await client.PostAsync(url, someContent);
527527

528528
// try to replay the request with match by body enforcement
@@ -531,11 +531,9 @@ public async Task TestMatchEmptyStringBodyToNonEmptyStringBody()
531531
MatchRules = new MatchRules().ByBody()
532532
});
533533
var emptyContent = new ByteArrayContent(Encoding.UTF8.GetBytes(string.Empty));
534-
Assert.ThrowsExceptionAsync<VCRException>(async () => await client.PostAsync(url, emptyContent), "No interaction found for request POST https://httpbin.org/post");
534+
await Assert.ThrowsExceptionAsync<VCRException>(async () => await client.PostAsync(url, emptyContent), $"No interaction found for request POST {url}");
535535
}
536536

537-
538-
539537
[TestMethod]
540538
public async Task TestInteractionElements()
541539
{

0 commit comments

Comments
 (0)