Skip to content

Commit

Permalink
move tests into own files
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Nov 11, 2023
1 parent 2d69551 commit afb7ad3
Show file tree
Hide file tree
Showing 15 changed files with 666 additions and 654 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions crates/kitsune-activitypub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@ url = "2.4.1"

[target.'cfg(not(target_env = "msvc"))'.dependencies]
sha2 = { version = "0.10.8", features = ["asm"] }

[dev-dependencies]
hyper = "0.14.27"
kitsune-config = { path = "../kitsune-config" }
kitsune-test = { path = "../kitsune-test" }
pretty_assertions = "1.4.0"
serial_test = "2.0.0"
tokio = { version = "1.34.0", features = ["macros"] }
tower = { version = "0.4.13", default-features = false, features = ["util"] }
4 changes: 0 additions & 4 deletions crates/kitsune-activitypub/src/deliverer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ pub struct Deliverer {

impl Deliverer {
/// Deliver the activity to an inbox
///
/// # Panics
///
/// - Panics in case the inbox URL isn't actually a valid URL
#[instrument(skip_all, fields(%inbox_url, activity_url = %activity.id))]
#[autometrics(track_concurrency)]
pub async fn deliver(
Expand Down
Loading

0 comments on commit afb7ad3

Please sign in to comment.