Skip to content

Commit

Permalink
remove debugreturner changes
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbros committed Sep 13, 2023
1 parent a26377d commit 24ba51d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions shotover/src/transforms/debug/returner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub enum Response {
#[serde(skip)]
Message(Messages),
Redis(String),
Fail(String),
Fail,
}

#[derive(Debug, Clone)]
Expand Down Expand Up @@ -68,7 +68,7 @@ impl Transform for DebugReturner {
)))
})
.collect()),
Response::Fail(s) => Err(anyhow!(s.clone())),
Response::Fail => Err(anyhow!("Intentional Fail")),
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,7 @@ mod scatter_transform_tests {
))]);

let ok_repeat = Box::new(DebugReturner::new(Response::Message(response.clone())));
let err_repeat = Box::new(DebugReturner::new(Response::Fail(
"intentional fail".into(),
)));
let err_repeat = Box::new(DebugReturner::new(Response::Fail));

let mut two_of_three = HashMap::new();
two_of_three.insert(
Expand Down

0 comments on commit 24ba51d

Please sign in to comment.