zero-to-production icon indicating copy to clipboard operation
zero-to-production copied to clipboard

https://my-api.com/subscriptions/confirm exists

Open max-block opened this issue 2 years ago • 0 comments

There is the code in the book:

pub async fn send_confirmation_email(email_client: &EmailClient, new_subscriber: NewSubscriber) -> Result<(), reqwest::Error> {
    let confirmation_link = "https://my-api.com/subscriptions/confirm";

It should first fail in tests, because of a non-existing address. But it exists and returns Response=200.

It's better to change the link "https://my-api.com/subscriptions/confirm" to something "https://there-is-no-such-a-domain.com/subscriptions/confirm"

P.S. It's about the chapter 7.7.5.1 Red Test

max-block avatar Apr 21 '22 08:04 max-block