Skip to content

Commit

Permalink
minor revert
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Feb 7, 2024
1 parent 84ed761 commit 027ec3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pgrx-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ pub fn pg_test(attr: TokenStream, item: TokenStream) -> TokenStream {
#att_stream

crate::pg_test::setup(options);
if let Err(res) = pgrx_tests::run_test(#sql_funcname, #expected_error, crate::pg_test::postgresql_conf_options()) {
Err(e) => panic!("{e:?}")
let res = pgrx_tests::run_test(#sql_funcname, #expected_error, crate::pg_test::postgresql_conf_options());
match res {
Ok(()) => (),
Err(e) => panic!("{:?}", e)
}
}
});
Expand Down

0 comments on commit 027ec3d

Please sign in to comment.