mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-06-01 19:22:47 +00:00
fix port collision in tests
This commit is contained in:
parent
22ea1c4578
commit
afeda52ac9
|
@ -576,7 +576,7 @@ mod tests {
|
||||||
.route("/", post(dodgy_handler))
|
.route("/", post(dodgy_handler))
|
||||||
.with_state(state);
|
.with_state(state);
|
||||||
|
|
||||||
axum::Server::bind(&"0.0.0.0:8001".parse().unwrap())
|
axum::Server::bind(&"0.0.0.0:8002".parse().unwrap())
|
||||||
.serve(app.into_make_service())
|
.serve(app.into_make_service())
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
@ -613,10 +613,10 @@ mod tests {
|
||||||
let keypair = generate_actor_keypair().unwrap();
|
let keypair = generate_actor_keypair().unwrap();
|
||||||
|
|
||||||
let message = SendActivityTask {
|
let message = SendActivityTask {
|
||||||
actor_id: "http://localhost:8001".parse().unwrap(),
|
actor_id: "http://localhost:8002".parse().unwrap(),
|
||||||
activity_id: "http://localhost:8001/activity".parse().unwrap(),
|
activity_id: "http://localhost:8002/activity".parse().unwrap(),
|
||||||
activity: "{}".into(),
|
activity: "{}".into(),
|
||||||
inbox: "http://localhost:8001".parse().unwrap(),
|
inbox: "http://localhost:8002".parse().unwrap(),
|
||||||
private_key: keypair.private_key().unwrap(),
|
private_key: keypair.private_key().unwrap(),
|
||||||
http_signature_compat: true,
|
http_signature_compat: true,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue