From: Ian Jackson Date: Sat, 27 Feb 2021 20:53:40 +0000 (+0000) Subject: tests: api_with_piece_op: actually use provided pathfrag! X-Git-Tag: otter-0.4.0~293 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=adad3a5305495c8cb3851c962a846548d7dc7a81;p=otter.git tests: api_with_piece_op: actually use provided pathfrag! Signed-off-by: Ian Jackson --- diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index f68713e5..4a2e78cc 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -224,9 +224,9 @@ impl Session { #[throws(AE)] fn api_with_piece_op(&mut self, su: &SetupCore, piece: &str, - opname: &str, op: serde_json::Value) { + pathfrag: &str, op: serde_json::Value) { self.api_piece_op(su, piece, "grab", json!({}))?; - self.api_piece_op(su, piece, "m", op)?; + self.api_piece_op(su, piece, pathfrag, op)?; self.api_piece_op(su, piece, "ungrab", json!({}))?; }