Comment out some tests

This commit is contained in:
Arpad Müller
2024-07-09 17:41:37 +02:00
parent f7c24c2834
commit c927675da9
5 changed files with 7 additions and 6 deletions

View File

@@ -394,7 +394,7 @@ impl BlobWriter<false> {
}
}
#[cfg(test)]
#[cfg(any())]
mod tests {
use super::*;
use crate::{context::DownloadBehavior, task_mgr::TaskKind, tenant::block_io::BlockReaderRef};

View File

@@ -86,7 +86,7 @@ pub(crate) enum BlockReaderRef<'a> {
Slice(&'a [u8]),
#[cfg(test)]
TestDisk(&'a super::disk_btree::tests::TestDisk),
#[cfg(test)]
#[cfg(any())]
VirtualFile(&'a VirtualFile),
}
@@ -105,7 +105,7 @@ impl<'a> BlockReaderRef<'a> {
Slice(s) => Self::read_blk_slice(s, blknum),
#[cfg(test)]
TestDisk(r) => r.read_blk(blknum),
#[cfg(test)]
#[cfg(any())]
VirtualFile(r) => r.read_blk(blknum, ctx).await,
}
}

View File

@@ -1498,7 +1498,7 @@ impl DeltaLayerInner {
offset
}
#[cfg(test)]
#[cfg(any())]
pub(crate) fn iter<'a>(&'a self, ctx: &'a RequestContext) -> DeltaLayerIterator<'a> {
let block_reader = FileBlockReader::new(&self.file, self.file_id);
let tree_reader =
@@ -1638,7 +1638,7 @@ impl<'a> DeltaLayerIterator<'a> {
}
}
#[cfg(test)]
#[cfg(any())]
mod test {
use std::collections::BTreeMap;

View File

@@ -1890,7 +1890,7 @@ impl ResidentLayer {
self.owner.metadata()
}
#[cfg(test)]
#[cfg(any())]
pub(crate) async fn get_as_delta(
&self,
ctx: &RequestContext,

View File

@@ -1015,6 +1015,7 @@ impl tokio_epoll_uring::IoFd for FileGuard {
#[cfg(test)]
impl VirtualFile {
#[cfg(any())]
pub(crate) async fn read_blk(
&self,
blknum: u32,