Skip to content

Commit

Permalink
Fixing some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjeline committed Oct 24, 2023
1 parent 1e56ce9 commit 88a0fb1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 35,065 deletions.
2 changes: 1 addition & 1 deletion cedar-policy-core/src/entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ mod json_parsing_tests {
match err {
EntitiesError::Deserialization(err) => assert!(
err.to_string()
.contains(r#"expected a literal entity reference, but got `"hello"`"#),
.contains(r#"expected a literal entity reference, but got `"\"hello\""`"#),
"actual error message was {err}"
),
_ => panic!("expected deserialization error, got a different error: {err}"),
Expand Down
2 changes: 1 addition & 1 deletion cedar-policy-core/src/entities/json/entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ mod test {
"attrs" : {},
"parents" : []
});
let x: Result<EntityJSON, _> = serde_json::from_value(test);
let x: Result<EntityJson, _> = serde_json::from_value(test);
x.unwrap();
}
}
Loading

0 comments on commit 88a0fb1

Please sign in to comment.