Skip to content

Commit

Permalink
PRD-1065 | added owner in gen_datahub_groups and condition for maximu…
Browse files Browse the repository at this point in the history
…m_lag
  • Loading branch information
Kunal-kankriya committed Feb 26, 2024
1 parent 5921a33 commit 446a221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion smoke-test/tests/cli/user_groups_cmd/test_group_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def gen_datahub_groups(num_groups: int) -> Iterable[CorpGroup]:
description=f"The Group {i}",
picture_link=f"https://images.google.com/group{i}.jpg",
slack=f"@group{i}",
owners=["user1"],
members=["user2"],
)
yield group
Expand Down Expand Up @@ -79,7 +80,6 @@ def get_group_membership(user_urn: str) -> List[str]:
return [entity.urn for entity in entities]


@pytest.mark.skip(reason="Functionality and test needs to be validated for correctness")
def test_group_upsert(wait_for_healthchecks: Any) -> None:
num_groups: int = 10
for i, datahub_group in enumerate(gen_datahub_groups(num_groups)):
Expand Down
2 changes: 1 addition & 1 deletion smoke-test/tests/consistency_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def wait_for_writes_to_sync(max_timeout_in_sec: int = 120) -> None:
result = str(completed_process.stdout)
lines = result.splitlines()
lag_values = [int(line) for line in lines if line != ""]
maximum_lag = max(lag_values)
maximum_lag = max(lag_values) if lag_values else 0
if maximum_lag == 0:
lag_zero = True

Expand Down

0 comments on commit 446a221

Please sign in to comment.