You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lua assert() won't kill the process, it only throws an error. For testing it might be better to have a real assert which would abort the process when fails. We could put it into vshard.util.assert() or something alike. In tests it would be redefined to call C function abort() (in test/instances/storage.lua and router.lua). Then we would more reliably catch all asserts which now might go unnoticed, especially when fail inside background services. By default we would keep it equal to Lua assert().
The text was updated successfully, but these errors were encountered:
Lua
assert()
won't kill the process, it only throws an error. For testing it might be better to have a real assert which would abort the process when fails. We could put it intovshard.util.assert()
or something alike. In tests it would be redefined to call C functionabort()
(intest/instances/storage.lua
androuter.lua
). Then we would more reliably catch all asserts which now might go unnoticed, especially when fail inside background services. By default we would keep it equal to Luaassert()
.The text was updated successfully, but these errors were encountered: