Testing fixes
This commit is contained in:
parent
ecaaac1dc2
commit
8a4cc66cbf
@ -4,4 +4,7 @@ before_install:
|
|||||||
install:
|
install:
|
||||||
- sudo apt-get install rust-nightly
|
- sudo apt-get install rust-nightly
|
||||||
script:
|
script:
|
||||||
- rustpkg test postgres
|
- rustc --lib --out-dir . src/postgres/lib.rs
|
||||||
|
- rustc --test --out-dir . -L. src/postgres/test.rs
|
||||||
|
- ./test
|
||||||
|
# - rustpkg test postgres
|
||||||
|
@ -401,7 +401,7 @@ fn test_custom_notice_handler() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let conn = PostgresConnection::connect("postgres://postgres@localhost");
|
let conn = PostgresConnection::connect("postgres://postgres@localhost?client_min_messages=NOTICE");
|
||||||
conn.set_notice_handler(~Handler as ~PostgresNoticeHandler);
|
conn.set_notice_handler(~Handler as ~PostgresNoticeHandler);
|
||||||
conn.update("CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)", []);
|
conn.update("CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)", []);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user