mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 20:31:19 +00:00
fix test
This commit is contained in:
parent
c8098196a7
commit
0337816803
1 changed files with 5 additions and 2 deletions
|
@ -622,8 +622,11 @@ mod tests {
|
||||||
LocalUserLanguage::update(pool, test_langs2, local_user.id).await?;
|
LocalUserLanguage::update(pool, test_langs2, local_user.id).await?;
|
||||||
|
|
||||||
// no overlap in user/community languages, so defaults to undetermined
|
// no overlap in user/community languages, so defaults to undetermined
|
||||||
let def1 = default_post_language(pool, None, community.id, local_user.id).await?;
|
let def1 = default_post_language(pool, None, community.id, local_user.id).await;
|
||||||
assert_eq!(UNDETERMINED_ID, def1);
|
assert_eq!(
|
||||||
|
Some(LemmyErrorType::LanguageNotAllowed),
|
||||||
|
def1.err().map(|e| e.error_type)
|
||||||
|
);
|
||||||
|
|
||||||
let ru = Language::read_id_from_code(pool, "ru").await?;
|
let ru = Language::read_id_from_code(pool, "ru").await?;
|
||||||
let test_langs3 = vec![
|
let test_langs3 = vec![
|
||||||
|
|
Loading…
Reference in a new issue