Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forbid outgoing requests in activitypub tests (fixes #2289) #2294

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Jun 3, 2022

No description provided.

@Nutomic Nutomic requested a review from dessalines as a code owner June 3, 2022 12:28
_extensions: &mut Extensions,
_next: Next<'_>,
) -> reqwest_middleware::Result<Response> {
Err(anyhow!("Network requests not allowed").into())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified that requests made from tests now return this error, so no actual outgoing request is made.

@dessalines dessalines merged commit 5387c26 into main Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants