Fix tests assuming a certain execution order

This commit is contained in:
Antonio Scandurra 2022-08-02 14:40:46 +02:00
parent a1d0d2ccc4
commit 25d47daad6

View file

@ -1270,13 +1270,6 @@ mod tests {
.detach();
});
let request = server.receive::<proto::RegisterProject>().await.unwrap();
server
.respond(
request.receipt(),
proto::RegisterProjectResponse { project_id: 200 },
)
.await;
let get_users_request = server.receive::<proto::GetUsers>().await.unwrap();
server
.respond(
@ -1307,6 +1300,14 @@ mod tests {
)
.await;
let request = server.receive::<proto::RegisterProject>().await.unwrap();
server
.respond(
request.receipt(),
proto::RegisterProjectResponse { project_id: 200 },
)
.await;
server.send(proto::UpdateContacts {
incoming_requests: vec![proto::IncomingContactRequest {
requester_id: 1,