We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47f9a66 commit 9d8b009Copy full SHA for 9d8b009
1 file changed
tests/test.rs
@@ -641,7 +641,7 @@ fn test_cancel_query() {
641
let conn = or_panic!(Connection::connect("postgres://postgres@localhost", SslMode::None));
642
let cancel_data = conn.cancel_data();
643
644
- let _t = thread::spawn(move || {
+ let t = thread::spawn(move || {
645
thread::sleep(Duration::from_millis(500));
646
assert!(postgres::cancel_query("postgres://postgres@localhost", SslMode::None,
647
&cancel_data).is_ok());
@@ -652,6 +652,8 @@ fn test_cancel_query() {
652
Err(res) => panic!("Unexpected result {:?}", res),
653
_ => panic!("Unexpected result"),
654
}
655
+
656
+ t.join().unwrap();
657
658
659
#[test]
0 commit comments