Skip to content
Snippets Groups Projects
Commit 6f7e8959 authored by Daniil Medvedev's avatar Daniil Medvedev
Browse files

stat_net.test added

parent 3caa7cbe
No related branches found
No related tags found
No related merge requests found
box.stat.net.SENT -- zero
---
- total: 0
rps: 0
...
box.stat.net.RECEIVED -- zero
---
- total: 0
rps: 0
...
space = box.schema.space.create('tweedledum')
---
...
box.schema.user.grant('guest','read,write,execute','universe')
---
...
index = space:create_index('primary', { type = 'hash' })
---
...
remote = require 'net.box'
---
...
LISTEN = require('uri').parse(box.cfg.listen)
---
...
cn = remote:new(LISTEN.host, LISTEN.service)
---
...
cn.space.tweedledum:select() --small request
---
- []
...
box.stat.net.SENT.total > 0
---
- true
...
box.stat.net.RECEIVED.total > 0
---
- true
...
box.stat.net.EVENTS.total > 0
---
- true
...
box.stat.net.LOCKS.total > 0
---
- true
...
space:drop()
---
...
cn:close()
---
...
box.stat.net.SENT -- zero
box.stat.net.RECEIVED -- zero
space = box.schema.space.create('tweedledum')
box.schema.user.grant('guest','read,write,execute','universe')
index = space:create_index('primary', { type = 'hash' })
remote = require 'net.box'
LISTEN = require('uri').parse(box.cfg.listen)
cn = remote:new(LISTEN.host, LISTEN.service)
cn.space.tweedledum:select() --small request
box.stat.net.SENT.total > 0
box.stat.net.RECEIVED.total > 0
box.stat.net.EVENTS.total > 0
box.stat.net.LOCKS.total > 0
space:drop()
cn:close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment