Skip to content

Commit

Permalink
gh-1656, gh-801 test case: review fixes
Browse files Browse the repository at this point in the history
Rename tests, reduce sleep interval, cleanup after the test a bit
more thoroughly, disable the test in release mode.
  • Loading branch information
kostja committed Sep 23, 2016
1 parent 4d34cd1 commit 8778b83
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions test/replication/catch.result
Expand Up @@ -133,3 +133,6 @@ box.space.test:drop()
box.schema.user.revoke('guest', 'replication')
---
...
box.schema.user.revoke('guest', 'read,write,execute', 'universe')
---
...
1 change: 1 addition & 0 deletions test/replication/catch.test.lua
Expand Up @@ -59,4 +59,5 @@ test_run:cmd("stop server replica")
test_run:cmd("cleanup server replica")
box.space.test:drop()
box.schema.user.revoke('guest', 'replication')
box.schema.user.revoke('guest', 'read,write,execute', 'universe')

Expand Up @@ -46,7 +46,7 @@ function wait_repl(cnt)
if s.index[0]:len() >= cnt then
return true
end
fiber.sleep(0.05)
fiber.sleep(0.01)
end
return false
end;
Expand Down Expand Up @@ -155,3 +155,9 @@ box.space.test.index[0]:len()
---
- 50
...
box.schema.user.revoke('guest', 'read,write,execute', 'universe')
---
...
box.schema.user.revoke('guest', 'replication')
---
...
Expand Up @@ -21,7 +21,7 @@ function wait_repl(cnt)
if s.index[0]:len() >= cnt then
return true
end
fiber.sleep(0.05)
fiber.sleep(0.01)
end
return false
end;
Expand Down Expand Up @@ -74,3 +74,5 @@ wait_repl(50)
test_run:cmd("switch default")
box.space.test.index[0]:len()

box.schema.user.revoke('guest', 'read,write,execute', 'universe')
box.schema.user.revoke('guest', 'replication')
2 changes: 1 addition & 1 deletion test/replication/suite.ini
Expand Up @@ -3,6 +3,6 @@ core = tarantool
script = master.lua
description = tarantool/box, replication
disabled = consistent.test.lua
release_disabled = catch.test.lua
release_disabled = catch.test.lua errinj.test.lua
lua_libs = lua/fast_replica.lua
long_run = prune.test.lua

0 comments on commit 8778b83

Please sign in to comment.