Skip to content

Commit

Permalink
fix: test is sync and send
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Oct 26, 2024
1 parent a36d80f commit 88e3727
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,28 @@ mod test {
.is_err());
}

fn is_send<T: Send>(_send: T) {}

fn is_sync<T: Sync>(_sync: T) {}

#[test]
fn test_should_be_sync() {
let client = FtpFs::new("127.0.0.1", 10021)
.username("test")
.password("test");

is_sync(client);
}

#[test]
fn test_should_be_send() {
let client = FtpFs::new("127.0.0.1", 10021)
.username("test")
.password("test");

is_send(client);
}

// -- test utils

#[cfg(feature = "with-containers")]
Expand Down

0 comments on commit 88e3727

Please sign in to comment.