mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2025-01-18 13:05:26 +00:00
Set expectation on helper mock.
This commit is contained in:
parent
9752cfc71e
commit
725280372d
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue