Skip to content

Commit

Permalink
Improve node cli status test
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Sep 19, 2024
1 parent d614bcb commit d690b55
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/schains/skaled_status_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from core.schains.status import (
get_node_cli_status,
node_cli_status_filepath,
NodeCliStatus,
SkaledStatus,
Expand Down Expand Up @@ -58,6 +59,9 @@ def test_log(skaled_status, _schain_name, caplog):


def test_node_cli_status_empty(_schain_name):
cli_status = get_node_cli_status(_schain_name)
assert cli_status is None

status_filepath = node_cli_status_filepath(_schain_name)
cli_status = NodeCliStatus(filepath=status_filepath)

Expand All @@ -66,8 +70,7 @@ def test_node_cli_status_empty(_schain_name):


def test_node_cli_status_repair(_schain_name, ncli_status):
status_filepath = node_cli_status_filepath(_schain_name)
cli_status = NodeCliStatus(filepath=status_filepath)
cli_status = get_node_cli_status(_schain_name)

assert cli_status.repair_ts == CURRENT_TS
assert cli_status.snapshot_from == '127.0.0.1'

0 comments on commit d690b55

Please sign in to comment.