Browse Source

console: fix tests

pull/1780/head
Zach Ramsay 7 years ago
parent
commit
4479e95709
2 changed files with 22 additions and 8 deletions
  1. +15
    -7
      tests/test_cli/ex1.abci.out
  2. +7
    -1
      tests/test_cli/ex2.abci.out

+ 15
- 7
tests/test_cli/ex1.abci.out View File

@ -1,36 +1,44 @@
> echo hello > echo hello
-> code: OK
-> data: hello -> data: hello
-> data.hex: 68656C6C6F
-> data.hex: 0x68656C6C6F
> info > info
-> code: OK
-> data: {"size":0} -> data: {"size":0}
-> data.hex: 7B2273697A65223A307D
-> data.hex: 0x7B2273697A65223A307D
> commit > commit
-> code: OK
> deliver_tx "abc" > deliver_tx "abc"
-> code: OK
> info > info
-> code: OK
-> data: {"size":1} -> data: {"size":1}
-> data.hex: 7B2273697A65223A317D
-> data.hex: 0x7B2273697A65223A317D
> commit > commit
-> data: IßÑ\ͬޮ—(ËûµèhŒ¥‹‘
-> data.hex: 49DFD15CCDACDEAE9728CB01FBB5E8688CA58B91
-> code: OK
-> data.hex: 0x49DFD15CCDACDEAE9728CB01FBB5E8688CA58B91
> query "abc" > query "abc"
-> code: OK
-> log: exists -> log: exists
-> height: 0 -> height: 0
-> value: abc -> value: abc
-> value.hex: 616263 -> value.hex: 616263
> deliver_tx "def=xyz" > deliver_tx "def=xyz"
-> code: OK
> commit > commit
-> data: p-³"€7?¿?Ÿ‰Ú* Î,Ö+
-> data.hex: 70102DB32280373FBF3F9F89DA2A20CE2CD62B0B
-> code: OK
-> data.hex: 0x70102DB32280373FBF3F9F89DA2A20CE2CD62B0B
> query "def" > query "def"
-> code: OK
-> log: exists -> log: exists
-> height: 0 -> height: 0
-> value: xyz -> value: xyz


+ 7
- 1
tests/test_cli/ex2.abci.out View File

@ -1,22 +1,28 @@
> set_option serial on > set_option serial on
-> code: OK
> check_tx 0x00 > check_tx 0x00
-> code: OK
> check_tx 0xff > check_tx 0xff
-> code: OK
> deliver_tx 0x00 > deliver_tx 0x00
-> code: OK
> check_tx 0x00 > check_tx 0x00
-> code: BadNonce -> code: BadNonce
-> log: Invalid nonce. Expected >= 1, got 0 -> log: Invalid nonce. Expected >= 1, got 0
> deliver_tx 0x01 > deliver_tx 0x01
-> code: OK
> deliver_tx 0x04 > deliver_tx 0x04
-> code: BadNonce -> code: BadNonce
-> log: Invalid nonce. Expected 2, got 4 -> log: Invalid nonce. Expected 2, got 4
> info > info
-> code: OK
-> data: {"hashes":0,"txs":2} -> data: {"hashes":0,"txs":2}
-> data.hex: 7B22686173686573223A302C22747873223A327D
-> data.hex: 0x7B22686173686573223A302C22747873223A327D

Loading…
Cancel
Save