Testing fixes

This commit is contained in:
Steven Fackler 2013-10-07 22:58:11 -07:00
parent ecaaac1dc2
commit 8a4cc66cbf
2 changed files with 5 additions and 2 deletions

View File

@ -4,4 +4,7 @@ before_install:
install:
- sudo apt-get install rust-nightly
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

View File

@ -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.update("CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)", []);