diff --git a/pgrx-tests/src/tests/spi_tests.rs b/pgrx-tests/src/tests/spi_tests.rs index fd8ed2cd2..23cd16fba 100644 --- a/pgrx-tests/src/tests/spi_tests.rs +++ b/pgrx-tests/src/tests/spi_tests.rs @@ -244,19 +244,19 @@ mod tests { } #[pg_test] - #[should_panic] + #[should_panic(expected = "PreparedStatementArgumentMismatch { expected: 1, got: 0 }")] fn test_cursor_prepared_statement_panics_none_args() -> Result<(), pgrx::spi::Error> { test_cursor_prepared_statement_panics_impl(None) } #[pg_test] - #[should_panic] + #[should_panic(expected = "PreparedStatementArgumentMismatch { expected: 1, got: 0 }")] fn test_cursor_prepared_statement_panics_less_args() -> Result<(), pgrx::spi::Error> { test_cursor_prepared_statement_panics_impl(Some([].to_vec())) } #[pg_test] - #[should_panic] + #[should_panic(expected = "PreparedStatementArgumentMismatch { expected: 1, got: 2 }")] fn test_cursor_prepared_statement_panics_more_args() -> Result<(), pgrx::spi::Error> { test_cursor_prepared_statement_panics_impl(Some([None, None].to_vec())) } @@ -570,7 +570,6 @@ mod tests { } #[pg_test] - #[allow(deprecated)] fn can_return_borrowed_str() -> Result<(), Box> { let res = Spi::connect(|c| { let mut cursor = c.open_cursor("SELECT 'hello' FROM generate_series(1, 10000)", None);