fix of test_embed_postprocessors_context

This commit is contained in:
Max Schrader 2022-01-16 13:42:20 -06:00
parent bb6b6c65bb
commit b599733025
1 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ fn test_embed_postprocessors_context() {
let is_root_note = ctx
.frontmatter
.get(&Value::String("is_root_note".to_string()))
.unwrap();
.unwrap_or(&Value::Bool(false));
if is_root_note != &Value::Bool(true) {
// NOTE: Test failure may not give output consistently because the test binary affects
// how output is captured and printed in the thread running this postprocessor. Just
@ -182,7 +182,7 @@ fn test_embed_postprocessors_context() {
let is_root_note = ctx
.frontmatter
.get(&Value::String("is_root_note".to_string()))
.unwrap();
.unwrap_or(&Value::Bool(false));
if is_root_note == &Value::Bool(true) {
// NOTE: Test failure may not give output consistently because the test binary affects
// how output is captured and printed in the thread running this postprocessor. Just