fix: false positive for ParentMissing

This commit is contained in:
Roman 2024-05-31 13:05:49 +02:00
parent f51a763ca3
commit 1612a7d83d
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ pub mod tests {
.get(&not_a_parent)
.ok_or(Error::ParentMissing(not_a_parent))
{
Ok(_) => (),
Ok(_) => panic!("Parent should not be related to this branch"),
Err(e) => {
assert_ne!(e, Error::ParentMissing(parent));
}