Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port: [#4277] Catch HttpRequestException in HttpRequest (#6404) #4304

Merged
merged 2 commits into from
Aug 9, 2022

Conversation

ceciliaavila
Copy link
Collaborator

Fixes #4277

Description

This PR ports the changes in .NET PR#6404 to catch HttpRequest exceptions.

Specific Changes

  • Added try-catch block in HttpRequest class.
  • HttpRequestWithException test added in botbuilder-dialogs-adaptive-testing/tests/action.test.js.
  • Updated Action_HttpRequest.test.dialog test script for the new test.

Testing

This image shows the new unit test passing.
image

@ceciliaavila ceciliaavila requested a review from a team as a code owner August 3, 2022 19:39
@coveralls
Copy link

coveralls commented Aug 3, 2022

Pull Request Test Coverage Report for Build 2792006565

  • 38 of 40 (95.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.0009%) to 84.53%

Changes Missing Coverage Covered Lines Changed/Added Lines %
libraries/botbuilder-dialogs-adaptive/src/actions/httpRequest.ts 38 40 95.0%
Totals Coverage Status
Change from base Build 2782566348: -0.0009%
Covered Lines: 19869
Relevant Lines: 22265

💛 - Coveralls

@tracyboehrer tracyboehrer merged commit c692c81 into main Aug 9, 2022
@tracyboehrer tracyboehrer deleted the southworks/port/catch-http-request-exception branch August 9, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

port: Catch HttpRequestException in HttpRequest (#6404)
3 participants