Skip to content

Commit

Permalink
Dev: unittests: Remove duplicated test case (#1658)
Browse files Browse the repository at this point in the history
Some test cases should be duplicated after #1650 merged
  • Loading branch information
liangxin1300 authored Jan 6, 2025
2 parents 44145ae + d0ca880 commit 9dcea10
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/unittests/test_report_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,12 +791,6 @@ def test_findln_by_timestamp_1(self):
middle_timestamp = utils.get_timestamp(data_list[1], pacemaker_file_path)
last_timestamp = utils.get_timestamp(data_list[2], pacemaker_file_path)
assert first_timestamp < middle_timestamp < last_timestamp
line_stamp = crmutils.parse_to_timestamp("Jan 03 11:03:41 2024")
result_line = utils.findln_by_timestamp(data, line_stamp, pacemaker_file_path)
assert result_line == 2
line_stamp = crmutils.parse_to_timestamp("Jan 03 12:03:41 2024")
result_line = utils.findln_by_timestamp(data, line_stamp, pacemaker_file_path)
assert result_line == 3

def test_findln_by_timestamp_irregular(self):
data = """line1
Expand Down

0 comments on commit 9dcea10

Please sign in to comment.