Skip to content

Commit

Permalink
test: fix tests after get_url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Dec 20, 2024
1 parent 80dde4c commit 759c41e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/analysis/src/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ mod test {
);
assert_eq!(
response["items"][0]["ancestors"][0]["purl"],
"pkg:maven/com.redhat.quarkus.platform/[email protected]?type=pom&repository_url=https://maven.repository.redhat.com/ga/"
"pkg:maven/com.redhat.quarkus.platform/[email protected]?type=pom&repository_url=https%3a%2f%2fmaven.repository.redhat.com%2fga%2f"
);

assert_eq!(&response["total"], 2);
Expand Down
2 changes: 1 addition & 1 deletion modules/analysis/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ mod test {
.unwrap();

assert_eq!(analysis_graph.items.last().unwrap().ancestors.last().unwrap().purl,
"pkg:maven/com.redhat.quarkus.platform/[email protected]?type=pom&repository_url=https://maven.repository.redhat.com/ga/".to_string()
"pkg:maven/com.redhat.quarkus.platform/[email protected]?type=pom&repository_url=https%3a%2f%2fmaven.repository.redhat.com%2fga%2f".to_string()
);
assert_eq!(
analysis_graph
Expand Down

0 comments on commit 759c41e

Please sign in to comment.