tarantool / metrics

Metric collection library for Tarantool
MIT License
39 stars 23 forks source link

test: fix using legacy approach in hooks #431

Closed DifferentialOrange closed 1 year ago

DifferentialOrange commented 1 year ago

g.before_all = function(g) ... end is a legacy approach and may be deprecated in the future [1]. g.before_all(function(g) ... end) is preferred since it allows to set multiple hooks. Moreover, this behavior is not supported in newer before_each/after_each hooks, so they weren't even executed before this patch.

  1. https://github.com/tarantool/luatest/blob/master/CHANGELOG.md#040

I didn't forget about