Skip to content

Commit

Permalink
use load_disks_impl in fenced unit test (#14593)
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo committed Sep 28, 2024
1 parent f09c208 commit c0f7f02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/test_fenced.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from fenced.main import parse_ed
from fenced.utils import load_disks_from_sys_block
from fenced.utils import load_disks_impl


@pytest.mark.parametrize(
Expand All @@ -21,10 +21,10 @@ def test_parse_ed(exclude, expected):


@pytest.mark.parametrize("exclude", [tuple(), ("sda"), ("sda,sdb")])
def test_load_disks_from_sys_block(exclude):
def test_load_disks(exclude):
"""We need to make sure that fenced always enumerates
a list of disks."""
disks = load_disks_from_sys_block(exclude)
disks = load_disks_impl(exclude)
assert disks
for disk in exclude:
assert disk not in disks

0 comments on commit c0f7f02

Please sign in to comment.