Completed duplicate database in multiple sessions.
This commit is contained in:
parent
ea7dec2f4e
commit
e49d6f5e46
@ -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),
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user