summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-12-17 21:03:05 -0800
committerBryan Newbold <bnewbold@archive.org>2020-12-17 21:03:05 -0800
commit51417bfeffc8dbbb417bfb352776a48204d06fbc (patch)
tree5bedae4cecda9996b2ff6ae159935cf670766d79 /tests
parent06746208a84e1f722829f9392d21a90830e7555b (diff)
downloades-public-proxy-51417bfeffc8dbbb417bfb352776a48204d06fbc.tar.gz
es-public-proxy-51417bfeffc8dbbb417bfb352776a48204d06fbc.zip
tests: off-by-one in helper resulting in some tests not running
Diffstat (limited to 'tests')
-rw-r--r--tests/common/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index 2d06d81..7773735 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -22,7 +22,7 @@ pub fn load_parts(path: &Path) -> ExampleParts {
.map(|v| v.into())
.collect::<Result<Vec<String>, _>>()
.unwrap();
- let body: Option<String> = if body.len() <= 1 {
+ let body: Option<String> = if body.len() == 0 {
None
} else {
Some(body.join("\n"))