From 725280372d097abfe9690df6309d6d530be5989c Mon Sep 17 00:00:00 2001 From: LukeMathWalker Date: Wed, 21 Jul 2021 21:59:32 +0100 Subject: [PATCH] Set expectation on helper mock. --- tests/api/newsletter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/newsletter.rs b/tests/api/newsletter.rs index 1111889..c103592 100644 --- a/tests/api/newsletter.rs +++ b/tests/api/newsletter.rs @@ -8,7 +8,7 @@ async fn create_unconfirmed_subscriber(app: &TestApp) -> ConfirmationLinks { let _mock_guard = Mock::given(path("/email")) .and(method("POST")) .respond_with(ResponseTemplate::new(200)) - .up_to_n_times(1) + .expect(1) .mount_as_scoped(&app.email_server) .await; app.post_subscriptions(body.into())