Set expectation on helper mock.

This commit is contained in:
LukeMathWalker 2021-07-21 21:59:32 +01:00
parent 9752cfc71e
commit 725280372d

View file

@ -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())