Skip to content

Commit

Permalink
Fix file path error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bequinn-hubspot committed Oct 25, 2023
1 parent fa84fe6 commit d6c0878
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ public Map<String, Map<String, CRDInfo>> getCRDDetailsPerNameAndVersion() {
}

void add(String crdName, String version, URI fileURI) {
String filePath = fileURI.getScheme().equals("mem") ? fileURI.toString() : new File(fileURI).getAbsolutePath();
crdNameToVersionToCRDInfoMap.computeIfAbsent(crdName, k -> new HashMap<>())
.put(version, new CRDInfo(crdName, version, new File(fileURI).getAbsolutePath(), ClassDependenciesVisitor.getDependentClassesFromCRDName(crdName)));
.put(version, new CRDInfo(crdName, version, filePath, ClassDependenciesVisitor.getDependentClassesFromCRDName(crdName)));
}

public int numberOfGeneratedCRDs() {
Expand Down

0 comments on commit d6c0878

Please sign in to comment.