Skip to content

Commit 79938c9

Browse files
committed
Add test for Clone impl
1 parent f9fa6db commit 79938c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/postgres.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
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},
910
runners::AsyncRunner,
1011
};
1112

13+
1214
mod common;
1315

1416
#[derive(Debug)]
@@ -78,3 +80,9 @@ async fn execute() {
7880
.await;
7981
}
8082
}
83+
84+
#[test]
85+
fn pool_postgres_is_clone() {
86+
fn assert_clone<T: Clone>() {}
87+
assert_clone::<Pool<Postgres>>();
88+
}

0 commit comments

Comments
 (0)