Fix test.

This commit is contained in:
Dessalines 2024-05-08 22:30:24 -04:00
parent e5f9a3e966
commit 6cdb4dfc86

View file

@ -1128,10 +1128,13 @@ mod tests {
"https://lemmy-alpha/api/v3/image_proxy?url=http%3A%2F%2Flemmy-beta%2Fimage.png", "https://lemmy-alpha/api/v3/image_proxy?url=http%3A%2F%2Flemmy-beta%2Fimage.png",
proxied.as_str() proxied.as_str()
); );
// This fails, because the details can't be fetched without pictrs running,
// And a remote image won't be inserted.
assert!( assert!(
RemoteImage::validate(&mut context.pool(), remote_image.into()) RemoteImage::validate(&mut context.pool(), remote_image.into())
.await .await
.is_ok() .is_err()
); );
} }