This repository was archived by the owner on Oct 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
tarantool/src/network/client Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -943,7 +943,12 @@ mod tests {
943943 assert_eq ! ( e. error_type( ) , "ClientError" ) ;
944944 assert_eq ! ( e. file( ) , Some ( "eval" ) ) ;
945945 assert_eq ! ( e. line( ) , Some ( 1 ) ) ;
946- assert_eq ! ( e. fields( ) . len( ) , 0 ) ;
946+ let fields_len = e. fields ( ) . len ( ) ;
947+ // Starting from tarantool 2.11.5 it will contain `name` field
948+ assert ! ( fields_len == 1 || fields_len == 0 ) ;
949+ if fields_len == 1 {
950+ assert_eq ! ( e. fields( ) [ "name" ] , rmpv:: Value :: from( "UNSUPPORTED" ) ) ;
951+ }
947952
948953 let e = e. cause ( ) . unwrap ( ) ;
949954
Original file line number Diff line number Diff line change @@ -344,10 +344,10 @@ pub fn non_string_error() {
344344 }
345345
346346 match lua
347- . exec ( "error(box.error.new(box.error.SYSTEM , 'oops '))" )
347+ . exec ( "error(box.error.new(box.error.NO_SUCH_USER , 'John '))" )
348348 . unwrap_err ( )
349349 {
350- LuaError :: ExecutionError ( msg) => assert_eq ! ( msg, "oops " ) ,
350+ LuaError :: ExecutionError ( msg) => assert_eq ! ( msg, "User 'John' is not found " ) ,
351351 _ => unreachable ! ( ) ,
352352 }
353353}
You can’t perform that action at this time.
0 commit comments