Skip to content

Commit 2cd88bb

Browse files
committed
remove outdated test
1 parent 2376f35 commit 2cd88bb

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

datafusion-cli/src/main.rs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -848,35 +848,4 @@ mod tests {
848848

849849
Ok(())
850850
}
851-
852-
#[tokio::test]
853-
async fn test_list_files_cache_not_set() -> Result<(), DataFusionError> {
854-
let rt = RuntimeEnvBuilder::new()
855-
.with_cache_manager(CacheManagerConfig::default().with_list_files_cache(None))
856-
.build_arc()
857-
.unwrap();
858-
859-
let ctx = SessionContext::new_with_config_rt(SessionConfig::default(), rt);
860-
861-
ctx.register_udtf(
862-
"list_files_cache",
863-
Arc::new(ListFilesCacheFunc::new(
864-
ctx.task_ctx().runtime_env().cache_manager.clone(),
865-
)),
866-
);
867-
868-
let rbs = ctx
869-
.sql("SELECT * FROM list_files_cache()")
870-
.await?
871-
.collect()
872-
.await?;
873-
assert_snapshot!(batches_to_string(&rbs),@r"
874-
+------+---------------------+------------+---------------+
875-
| path | metadata_size_bytes | expires_in | metadata_list |
876-
+------+---------------------+------------+---------------+
877-
+------+---------------------+------------+---------------+
878-
");
879-
880-
Ok(())
881-
}
882851
}

0 commit comments

Comments
 (0)