Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Jul 16, 2024
1 parent 6b92088 commit b420cb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/features/qdevice_usercase.feature
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ Feature: Verify usercase master survive when split-brain
And Service "corosync-qnetd" is "started" on "qnetd-node"
And Show corosync qdevice configuration
When Run "crm corosync status qnetd" on "hanode1"
Then Expected regrex "Heuristics:\s+Fail" in stdout
Then Expected regex "Heuristics:\s+Fail" in stdout
When Run "touch /tmp/heuristics.txt" on "hanode1"
When Run "sleep 30" on "hanode1"
When Run "crm corosync status qnetd" on "hanode1"
Then Expected regrex "Heuristics:\s+Pass" in stdout
Then Expected regex "Heuristics:\s+Pass" in stdout

@clean
Scenario: Master survive when split-brain
Expand Down
2 changes: 1 addition & 1 deletion test/features/steps/step_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def step_impl(context, msg):
context.stderr = None


@then('Expected regrex "{reg_str}" in stdout')
@then('Expected regex "{reg_str}" in stdout')
def step_impl(context, reg_str):
res = re.search(reg_str, context.stdout)
assert res is not None
Expand Down

0 comments on commit b420cb6

Please sign in to comment.