Skip to content

Commit

Permalink
Fix OMAP lock test.
Browse files Browse the repository at this point in the history
Fixes #327

Signed-off-by: Gil Bregman <[email protected]>
  • Loading branch information
gbregman committed Nov 20, 2023
1 parent 9c9cf95 commit 0280b00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_create_get_subsys(caplog, config):

for i in range(created_resource_count):
create_resource_by_index(i)
assert "Failed" not in caplog.text
assert "failed" not in caplog.text

caplog.clear()

Expand Down
4 changes: 3 additions & 1 deletion tests/test_omap_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_multi_gateway_omap_reread(config, conn, caplog):
assert len(listB) == 1

listA = json.loads(json_format.MessageToJson(
stubB.get_subsystems(get_subsystems_req),
stubA.get_subsystems(get_subsystems_req),
preserving_proto_field_name=True))['subsystems']
assert len(listA) == num_subsystems

Expand Down Expand Up @@ -208,5 +208,7 @@ def test_multi_gateway_concurrent_changes(config, image, conn, caplog):

# Let the update some time to bring both gateways to the same page
time.sleep(15)
caplog.clear()
cli(["get_subsystems"])
for i in range(created_resource_count):
check_resource_by_index(i, caplog)

0 comments on commit 0280b00

Please sign in to comment.