Skip to content

Commit d112bae

Browse files
committed
more feature gating
1 parent e96d78f commit d112bae

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/store/gc.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,20 +240,16 @@ pub async fn run_gc(store: Store, config: GcConfig) {
240240

241241
#[cfg(test)]
242242
mod tests {
243-
use std::{
244-
io::{self},
245-
path::Path,
246-
};
243+
use std::io::{self};
247244

248-
use bao_tree::{io::EncodeError, ChunkNum};
245+
use bao_tree::io::EncodeError;
249246
use range_collections::RangeSet2;
250247
use testresult::TestResult;
251248

252249
use super::*;
253250
use crate::{
254251
api::{blobs::AddBytesOptions, ExportBaoError, RequestError, Store},
255252
hashseq::HashSeq,
256-
store::{fs::options::PathOptions, util::tests::create_n0_bao},
257253
BlobFormat,
258254
};
259255

@@ -324,7 +320,11 @@ mod tests {
324320
Ok(())
325321
}
326322

327-
async fn gc_file_delete(path: &Path, store: &Store) -> TestResult<()> {
323+
#[cfg(feature = "fs-store")]
324+
async fn gc_file_delete(path: &std::path::Path, store: &Store) -> TestResult<()> {
325+
use bao_tree::ChunkNum;
326+
327+
use crate::store::{fs::options::PathOptions, util::tests::create_n0_bao};
328328
let mut live = HashSet::new();
329329
let options = PathOptions::new(&path.join("db"));
330330
// create a large complete file and check that the data and outboard files are deleted by gc

0 commit comments

Comments
 (0)