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

View File

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