Skip to content

Commit 3abfb00

Browse files
authored
Merge pull request #41 from ryanfowler/fix-conn-for-each-test-results
Check conn_for_each results in pool test
2 parents 02768e0 + 2324850 commit 3abfb00

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/tests.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,10 @@ async fn test_pool_conn_for_each() {
206206
)
207207
};
208208
// attach to the dummy db via conn_for_each
209-
pool.conn_for_each(attach_fn).await;
209+
let results = pool.conn_for_each(attach_fn).await;
210+
for result in results {
211+
result.unwrap();
212+
}
210213

211214
// check that the dummy db is attached
212215
fn check_fn(conn: &rusqlite::Connection) -> Result<Vec<String>, rusqlite::Error> {

0 commit comments

Comments
 (0)