test: fix vinyl/errinj spurious failure
The failing test case checks that modifications done to the space during the final dump of a newly built index are recovered properly. It assumes that a series of operations will complete in 0.1 seconds, but it may not happen if the disk is slow (like on Travis CI). This results in spurious failures. To fix this issue, let's replace ERRINJ_VY_RUN_WRITE_TIMEOUT used by the test with ERRINJ_VY_RUN_WRITE_DELAY, which blocks index creation until it is disabled instead of injecting a time delay as its predecessor did. Closes #3756
Showing
- src/box/vy_scheduler.c 5 additions, 3 deletionssrc/box/vy_scheduler.c
- src/errinj.h 1 addition, 1 deletionsrc/errinj.h
- test/box/errinj.result 10 additions, 10 deletionstest/box/errinj.result
- test/vinyl/errinj.result 8 additions, 8 deletionstest/vinyl/errinj.result
- test/vinyl/errinj.test.lua 4 additions, 4 deletionstest/vinyl/errinj.test.lua
- test/vinyl/quota_timeout.result 14 additions, 7 deletionstest/vinyl/quota_timeout.result
- test/vinyl/quota_timeout.test.lua 7 additions, 5 deletionstest/vinyl/quota_timeout.test.lua
Loading
Please register or sign in to comment