Skip to content

Commit 117afb4

Browse files
committed
Add test for Clone impl
1 parent f9fa6db commit 117afb4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/postgres.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use std::time::Duration;
44

55
use sqlx::Postgres;
6+
use sqlx_tracing::Pool;
67
use testcontainers::{
78
GenericImage, ImageExt,
89
core::{ContainerPort, WaitFor},
@@ -78,3 +79,9 @@ async fn execute() {
7879
.await;
7980
}
8081
}
82+
83+
#[test]
84+
fn pool_postgres_is_clone() {
85+
fn assert_clone<T: Clone>() {}
86+
assert_clone::<Pool<Postgres>>();
87+
}

0 commit comments

Comments
 (0)