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

Add fallible versions of test_utils helpers to actix-test #2961

Merged
merged 2 commits into from
Jan 11, 2023

Conversation

Zacho2
Copy link
Contributor

@Zacho2 Zacho2 commented Jan 9, 2023

PR Type

Feature

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

Add fallible versions of test_utils helpers for calling test services and reading response payloads. Existing non-fallible call into their fallible counterparts and use unwrap.

Resolves #2952

@robjtede robjtede added B-semver-minor A-web project: actix-web labels Jan 9, 2023
@robjtede robjtede added this to the actix-web v4.3 milestone Jan 9, 2023
@robjtede robjtede requested a review from a team January 9, 2023 10:24
@robjtede robjtede requested a review from a team January 10, 2023 09:00
@Zacho2
Copy link
Contributor Author

Zacho2 commented Jan 10, 2023

Seems like the Windows stable/1.59 checks are failing at the step to install OpenSSL. Not sure if that's a known issue or how to resolve it, yet.

@robjtede
Copy link
Member

It's a new issue but clearly not related to your PR. No worries about that.

@robjtede robjtede changed the title Add fallible versions of test_utils helpers to actix-test (#2952) Add fallible versions of test_utils helpers to actix-test Jan 11, 2023
@robjtede robjtede merged commit 6627109 into actix:master Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web project: actix-web B-semver-minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test functions which return Result instead panic
3 participants