Skip to content

Commit

Permalink
few more changes
Browse files Browse the repository at this point in the history
Signed-off-by: Mahesh Shetty <[email protected]>
  • Loading branch information
Mahesh Shetty authored and Mahesh Shetty committed Sep 25, 2024
1 parent f5c78fb commit f9932fd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/functional/disaster-recovery/sc_arbiter/test_netsplit.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def finalizer():
argvalues=[
pytest.param(
constants.NETSPLIT_DATA_1_DATA_2,
15,
30,
marks=[
pytest.mark.polarion_id("OCS-5069"),
pytest.mark.polarion_id("OCS-5071"),
Expand Down Expand Up @@ -118,10 +118,10 @@ def finalizer():
),
],
ids=[
# "Data-1-Data-2",
# "Arbiter-Data-1",
"Data-1-Data-2",
"Arbiter-Data-1",
"Arbiter-Data-1-and-Arbiter-Data-2",
# "Arbiter-Data-1-and-Data-1-Data-2",
"Arbiter-Data-1-and-Data-1-Data-2",
],
)
@pytest.mark.polarion_id("OCS-5850")
Expand Down Expand Up @@ -203,8 +203,9 @@ def test_netsplit(
):
sc_obj.get_out_of_quorum_nodes()

# note the end time (UTC)
if not sc_obj.check_ceph_accessibility(timeout=(duration * 60)):
# check for ceph accessibility and note the end time (UTC)
timeout = (end_time - datetime.now(timezone.utc)).total_seconds()
if not sc_obj.check_ceph_accessibility(timeout=timeout):
assert recover_from_ceph_stuck(
sc_obj
), "Something went wrong. not expected. please check rook-ceph logs"
Expand Down

0 comments on commit f9932fd

Please sign in to comment.