File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ mod tests {
8484 & [ & empty_vec] ,
8585 ) ;
8686 assert ! ( empty_res. is_err( ) ) ;
87- assert ! ( empty_res
88- . unwrap_err( )
89- . to_string ( )
90- . contains ( "halfvec must have at least 1 dimension" ) ) ;
87+ assert_eq ! (
88+ empty_res . unwrap_err( ) . as_db_error ( ) . unwrap ( ) . message ( ) ,
89+ "halfvec must have at least 1 dimension"
90+ ) ;
9191
9292 let null_row = client. query_one (
9393 "SELECT embedding FROM postgres_half_items WHERE embedding IS NULL LIMIT 1" ,
Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ mod tests {
8080 & [ & empty_vec] ,
8181 ) ;
8282 assert ! ( empty_res. is_err( ) ) ;
83- assert ! ( empty_res
84- . unwrap_err( )
85- . to_string ( )
86- . contains ( "vector must have at least 1 dimension" ) ) ;
83+ assert_eq ! (
84+ empty_res . unwrap_err( ) . as_db_error ( ) . unwrap ( ) . message ( ) ,
85+ "vector must have at least 1 dimension"
86+ ) ;
8787
8888 let null_row = client. query_one (
8989 "SELECT embedding FROM postgres_items WHERE embedding IS NULL LIMIT 1" ,
You can’t perform that action at this time.
0 commit comments