Skip to content

Commit

Permalink
Add error handling for URL parsing in getAggregatedMetrics function
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzofenix committed Jul 28, 2024
1 parent 3f1d58f commit 080ece1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/acceptance/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ func deleteReq(url string) ([]byte, int) {
func getAggregatedMetrics() *AggregatedMetricsResults {
var metrics *AggregatedMetricsResults
aggregatedMetricURL, err := url.Parse(cfg.ASApiEndpoint)
Expect(err).ShouldNot(HaveOccurred())
aggregatedMetricURL.Path = fmt.Sprintf(AggregatedMetricPath, appGUID, "memoryused")

raw, status := get(aggregatedMetricURL.String())
Expand Down

0 comments on commit 080ece1

Please sign in to comment.