Skip to content

Commit

Permalink
Bugfix: check the file load type before judge them as the same file
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou9584 committed Jun 24, 2024
1 parent 3960c5a commit dcb3626
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,9 @@ public List<TestJsonInfo> getTestJsonHistory(String packageName, String caseName
}

public boolean compareFileInfo(StorageFileInfo newFileInfo, StorageFileInfo oldFileInfo) {
if (newFileInfo.getLoadType() == null && oldFileInfo.getLoadType() == null) {
return true;
} else if (newFileInfo.getFileName().equals(oldFileInfo.getFileName())
&& newFileInfo.getLoadType().equals(oldFileInfo.getLoadType())
if (newFileInfo.getFileName().equals(oldFileInfo.getFileName())
&& ((newFileInfo.getLoadType() == null && oldFileInfo.getLoadType() == null) ||
(newFileInfo.getLoadType() != null && newFileInfo.getLoadType().equals(oldFileInfo.getLoadType())))
&& newFileInfo.getLoadDir().equals(oldFileInfo.getLoadDir())
&& newFileInfo.getBlobContainer().equals(oldFileInfo.getBlobContainer())
&& newFileInfo.getFileType().equals(oldFileInfo.getFileType())) {
Expand Down

0 comments on commit dcb3626

Please sign in to comment.