Skip to content

Commit

Permalink
gh-1017 double-run bug fixed, and fixed same bug in stat_net. But bug…
Browse files Browse the repository at this point in the history
… with probability doesn't repeated
  • Loading branch information
medvdanil committed Sep 2, 2015
1 parent 0bf2a1a commit e03f622
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/box/net.box.result
Expand Up @@ -771,6 +771,12 @@ cn:ping()
cn:close()
---
...
box.schema.user.revoke('netbox', 'read, write, execute', 'universe');
---
...
box.schema.user.drop('netbox')
---
...
-- #594: bad argument #1 to 'setmetatable' (table expected, got number)
--# setopt delimiter ';'
function gh594()
Expand Down
3 changes: 3 additions & 0 deletions test/box/net.box.test.lua
Expand Up @@ -302,6 +302,9 @@ cn = remote.new(uri, { password = 'test' })
cn:ping()
cn:close()

box.schema.user.revoke('netbox', 'read, write, execute', 'universe');
box.schema.user.drop('netbox')

-- #594: bad argument #1 to 'setmetatable' (table expected, got number)
--# setopt delimiter ';'
function gh594()
Expand Down
3 changes: 3 additions & 0 deletions test/box/stat_net.result
Expand Up @@ -55,3 +55,6 @@ space:drop()
cn:close()
---
...
box.schema.user.revoke('guest','read,write,execute','universe')
---
...
1 change: 1 addition & 0 deletions test/box/stat_net.test.lua
Expand Up @@ -22,3 +22,4 @@ box.stat.net.LOCKS.total > 0

space:drop()
cn:close()
box.schema.user.revoke('guest','read,write,execute','universe')

0 comments on commit e03f622

Please sign in to comment.