Completed duplicate database in multiple sessions.

This commit is contained in:
Jeff Baskin 2023-07-13 09:39:25 -04:00
parent ea7dec2f4e
commit e49d6f5e46
1 changed files with 4 additions and 1 deletions

View File

@ -162,7 +162,10 @@ mod mtt {
let output = mtt2.commit(store2).await;
match output {
Ok(_) => assert!(false, "Should have returned an error"),
Err(_) => (),
Err(err) => match err.code {
ErrorCode::DuplicateDatabase(_) => (),
_ => assert!(false, "{:?} is not ErrorCode::DuplicateDatabase", err.code),
},
}
}
}