Skip to content

Commit a401164

Browse files
committed
tests: change check_ptrack_sanity() so page delete considered valid case for ptrack marking
1 parent bd703a0 commit a401164

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/helpers/ptrack_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,9 @@ def check_ptrack_sanity(self, idx_dict):
454454
continue
455455
if PageNum not in idx_dict['new_pages']:
456456
# Page is not present now, meaning that relation got smaller
457-
# Ptrack should be equal to 0,
457+
# Ptrack should be equal to 1,
458458
# We are not freaking out about false positive stuff
459-
if idx_dict['ptrack'][PageNum] != 0:
459+
if idx_dict['ptrack'][PageNum] != 1:
460460
if self.verbose:
461461
print(
462462
'File: {0}\n Page Number {1} of type {2} was deleted,'

0 commit comments

Comments
 (0)