This commit is contained in:
Felix Ableitner 2024-02-16 13:03:59 +01:00
parent 807daed174
commit 85074d23ee
2 changed files with 4 additions and 4 deletions

View file

@ -1609,7 +1609,7 @@ mod tests {
let unauthenticated_query = PostQuery {
..Default::default()
}
.list(pool)
.list(&data.site, pool)
.await?;
assert_eq!(0, unauthenticated_query.len());
@ -1617,7 +1617,7 @@ mod tests {
local_user: Some(&data.local_user_view),
..Default::default()
}
.list(pool)
.list(&data.site, pool)
.await?;
assert_eq!(2, authenticated_query.len());

View file

@ -301,7 +301,7 @@ mod tests {
let url = Url::parse("http://example.com").unwrap();
let site = Site {
id: Default::default(),
name: "".to_string(),
name: String::new(),
sidebar: None,
published: Default::default(),
updated: None,
@ -312,7 +312,7 @@ mod tests {
last_refreshed_at: Default::default(),
inbox_url: url.into(),
private_key: None,
public_key: "".to_string(),
public_key: String::new(),
instance_id: Default::default(),
content_warning: None,
};