Skip to content
Snippets Groups Projects
Commit cf8727a5 authored by 🥺's avatar 🥺 :transgender_flag: Committed by 🥺
Browse files

only test long_file_names_works if using sha256_media feature

parent 77475dac
No related branches found
No related tags found
No related merge requests found
use std::{fmt::Debug, mem, time::Duration}; use std::{fmt::Debug, mem, time::Duration};
use bytes::BytesMut; use bytes::BytesMut;
use ipaddress::IPAddress;
use ruma::api::{appservice::Registration, IncomingResponse, MatrixVersion, OutgoingRequest, SendAccessToken}; use ruma::api::{appservice::Registration, IncomingResponse, MatrixVersion, OutgoingRequest, SendAccessToken};
use tracing::{debug, warn}; use tracing::warn;
use crate::{services, utils, Error, Result}; use crate::{services, utils, Error, Result};
......
...@@ -538,6 +538,7 @@ fn get_url_preview(&self, _url: &str) -> Option<UrlPreviewData> { todo!() } ...@@ -538,6 +538,7 @@ fn get_url_preview(&self, _url: &str) -> Option<UrlPreviewData> { todo!() }
} }
#[tokio::test] #[tokio::test]
#[cfg(feature = "sha256_media")]
async fn long_file_names_works() { async fn long_file_names_works() {
static DB: MockedKVDatabase = MockedKVDatabase; static DB: MockedKVDatabase = MockedKVDatabase;
let media = Service { let media = Service {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment