Update test/unit/Elsa.Activities.UnitTests/HTTP/SendHttpRequestTests.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
lukhipolito-nexxbiz 2025-10-13 19:23:05 +02:00 committed by GitHub
parent cc8a99886a
commit ef73674387
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -285,9 +285,10 @@ public class SendHttpRequestTests
});
// Assert
var responseHeaders = (HttpHeaders)context.GetExecutionOutput(_ => sendHttpRequest.ResponseHeaders)!;
var responseHeadersObj = context.GetExecutionOutput(_ => sendHttpRequest.ResponseHeaders);
var responseHeaders = responseHeadersObj as HttpHeaders;
Assert.NotNull(responseHeaders);
Assert.True(responseHeaders.ContainsKey("Custom-Header"));
Assert.True(responseHeaders!.ContainsKey("Custom-Header"));
Assert.True(responseHeaders.ContainsKey("X-Rate-Limit"));
}