We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91a2198 commit a881ba3Copy full SHA for a881ba3
rust/tests/it/wiremock_tests.rs
@@ -141,6 +141,7 @@ async fn test_unknown_keys_are_ignored() {
141
Mock::given(method("GET"))
142
.and(path("/api/v1/app"))
143
.respond_with(ResponseTemplate::new(200).set_body_string(json_body))
144
+ .expect(1)
145
.mount(&mock_server)
146
.await;
147
@@ -154,10 +155,5 @@ async fn test_unknown_keys_are_ignored() {
154
155
156
svx.application().list(None).await.unwrap();
157
- let requests = mock_server
158
- .received_requests()
159
- .await
160
- .expect("we should have sent a request");
161
-
162
- assert_eq!(1, requests.len());
+ mock_server.verify().await;
163
}
0 commit comments