test: vinyl/low_quota.lua: pass size in args instead of using symlinks
Currently, to set the memory size in the low_quota.lua script, we use a rather dirty trick: we create a symlink to low_quota.lua and code the memory size in the name of the link (e.g. low_quota_2.lua). Instead we can pass the memory size directly via the 'args' parameter so let's do this. While we are at it, let's also: - Fix a type in vinly/recovery_quota.test.lua: -- Disable dump and use all memory up to the limit. box.error.injection.set('ERRINJ_VY_RUN_WRITE', false) It should be 'true' obviously. - Remove useless switch to and from 'default' to restart a replica as the 'restart' command can be called from the replica script.
Showing
- test/vinyl/dump_stress.result 2 additions, 2 deletionstest/vinyl/dump_stress.result
- test/vinyl/dump_stress.test.lua 2 additions, 2 deletionstest/vinyl/dump_stress.test.lua
- test/vinyl/errinj.result 2 additions, 2 deletionstest/vinyl/errinj.result
- test/vinyl/errinj.test.lua 2 additions, 2 deletionstest/vinyl/errinj.test.lua
- test/vinyl/low_quota.lua 3 additions, 3 deletionstest/vinyl/low_quota.lua
- test/vinyl/low_quota_1.lua 0 additions, 1 deletiontest/vinyl/low_quota_1.lua
- test/vinyl/low_quota_2.lua 0 additions, 1 deletiontest/vinyl/low_quota_2.lua
- test/vinyl/quota_timeout.result 2 additions, 2 deletionstest/vinyl/quota_timeout.result
- test/vinyl/quota_timeout.test.lua 2 additions, 2 deletionstest/vinyl/quota_timeout.test.lua
- test/vinyl/recovery_quota.result 6 additions, 40 deletionstest/vinyl/recovery_quota.result
- test/vinyl/recovery_quota.test.lua 6 additions, 18 deletionstest/vinyl/recovery_quota.test.lua
Loading
Please register or sign in to comment