We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40cba12 commit 9466dfeCopy full SHA for 9466dfe
1 file changed
postgres-tokio/src/test.rs
@@ -133,9 +133,12 @@ fn query() {
133
})
134
.and_then(|c| c.prepare("SELECT id, name FROM foo ORDER BY id"))
135
.and_then(|(s, c)| c.query(&s, &[]).collect())
136
- .map(|(r, _)| {
+ .and_then(|(r, c)| {
137
assert_eq!(r[0].get::<String, _>("name"), "joe");
138
assert_eq!(r[1].get::<String, _>("name"), "bob");
139
- });
+ c.prepare("")
140
+ })
141
+ .and_then(|(s, c)| c.query(&s, &[]).collect())
142
+ .map(|(r, _)| assert!(r.is_empty()));
143
l.run(done).unwrap();
144
}
0 commit comments