Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed Mar 7, 2025
1 parent a9d58b0 commit 29ec1a0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/sinks/webhdfs/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,15 @@ async fn hdfs_rotate_files_after_the_buffer_size_is_reached() {
// Hard-coded sleeps are bad, but we're waiting on localstack's state to converge.
tokio::time::sleep(Duration::from_secs(1)).await;

let mut objects: Vec<Entry> = op.list_with("/").recursive(true).await.unwrap();
let mut objects: Vec<Entry> = op
.list_with("/")
.recursive(true)
.await
.unwrap()
.into_iter()
// We need this because we are only interested in files.
.filter(|e| e.is_file())

Check failure on line 84 in src/sinks/webhdfs/integration_tests.rs

View workflow job for this annotation

GitHub Actions / Checks

no method named `is_file` found for reference `&opendal::Entry` in the current scope
.collect();

// Sort file path in order, because we have the event id in path.
objects.sort_by(|l, r| l.path().cmp(r.path()));
Expand Down

0 comments on commit 29ec1a0

Please sign in to comment.