only test long_file_names_works if using sha256_media feature

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-28 19:46:03 -04:00 committed by June
parent 77475dacf5
commit cf8727a5f8
2 changed files with 2 additions and 2 deletions

View file

@ -1,9 +1,8 @@
use std::{fmt::Debug, mem, time::Duration};
use bytes::BytesMut;
use ipaddress::IPAddress;
use ruma::api::{appservice::Registration, IncomingResponse, MatrixVersion, OutgoingRequest, SendAccessToken};
use tracing::{debug, warn};
use tracing::warn;
use crate::{services, utils, Error, Result};

View file

@ -538,6 +538,7 @@ mod tests {
}
#[tokio::test]
#[cfg(feature = "sha256_media")]
async fn long_file_names_works() {
static DB: MockedKVDatabase = MockedKVDatabase;
let media = Service {