box: netbox.self and connect should work interchangeably
Despite what was stated in the documentation, netbox.connect was not always equivalent to netbox.self. In particular, they converted tuple to different types - table and cdata respectively. The patch fixes the issue and covers all cases where netbox.self and connect perform conversion of types - e.g., for box.error. Closes #4513
Showing
- src/box/lua/net_box.lua 7 additions, 1 deletionsrc/box/lua/net_box.lua
- test/app-tap/debug.result 4 additions, 4 deletionstest/app-tap/debug.result
- test/box/engine.cfg 6 additions, 0 deletionstest/box/engine.cfg
- test/box/gh-4513-netbox-self-and-connect-interchangeable.result 45 additions, 0 deletions...ox/gh-4513-netbox-self-and-connect-interchangeable.result
- test/box/gh-4513-netbox-self-and-connect-interchangeable.test.lua 23 additions, 0 deletions.../gh-4513-netbox-self-and-connect-interchangeable.test.lua
- test/box/suite.ini 1 addition, 0 deletionstest/box/suite.ini
Loading
Please register or sign in to comment