Skip to content

Commit

Permalink
Update test cases for hostlist feature
Browse files Browse the repository at this point in the history
Signed-off-by: David Pochopsky <[email protected]>
  • Loading branch information
dpochopsky committed Feb 12, 2025
1 parent 09cda29 commit 5398636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/scalers/solace_scaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ func TestSolaceParseSolaceMetadata(t *testing.T) {
default:
fmt.Println(" --> PASS")
}
for i := 0; i < len(s.metadata.endpointURLsList); i++ {
sempQueueURL := s.metadata.endpointURLsList[i]
for i := 0; i < len(meta.endpointURLsList); i++ {
sempQueueURL := meta.endpointURLsList[i]
if !testData.isError && strings.Contains(testData.metadata["queueName"], "/") && !strings.Contains(sempQueueURL, url.QueryEscape(testData.metadata["queueName"])) {
t.Error("expected endpointURL to query escape special characters in the URL but got:", sempQueueURL)
fmt.Println(" --> FAIL")
Expand Down

0 comments on commit 5398636

Please sign in to comment.