forked from TrueCloudLab/frostfs-testlib
[#280] Fix neo-go query height in steps
Signed-off-by: Dmitriy Zayakin <d.zayakin@yadro.com>
This commit is contained in:
parent
0ba4a73db3
commit
1c2ed25929
1 changed files with 7 additions and 5 deletions
|
@ -690,11 +690,13 @@ def neo_go_query_height(shell: Shell, endpoint: str) -> dict:
|
||||||
latest_block = first_line.split(":")
|
latest_block = first_line.split(":")
|
||||||
# taking second line from command's output contain wallet key
|
# taking second line from command's output contain wallet key
|
||||||
second_line = output.split("\n")[1]
|
second_line = output.split("\n")[1]
|
||||||
validated_state = second_line.split(":")
|
if second_line != "":
|
||||||
return {
|
validated_state = second_line.split(":")
|
||||||
latest_block[0].replace(":", ""): int(latest_block[1]),
|
return {
|
||||||
validated_state[0].replace(":", ""): int(validated_state[1]),
|
latest_block[0].replace(":", ""): int(latest_block[1]),
|
||||||
}
|
validated_state[0].replace(":", ""): int(validated_state[1]),
|
||||||
|
}
|
||||||
|
return {latest_block[0].replace(":", ""): int(latest_block[1])}
|
||||||
|
|
||||||
|
|
||||||
@wait_for_success()
|
@wait_for_success()
|
||||||
|
|
Loading…
Reference in a new issue