Skip to content

Commit

Permalink
Fix wait-loop in domain E2E test (#1919)
Browse files Browse the repository at this point in the history
* WIP: E2E test wait loop debug

* Remove additional single quotation marks
  • Loading branch information
dsimansk authored Mar 27, 2024
1 parent 9ef220c commit c462958
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/domain_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"math/big"
"os"
"path/filepath"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -137,6 +138,8 @@ func domainDescribe(r *test.KnRunResultCollector, domainName string, tls bool) {
for i := 0; i < 20; i++ {
out, err := k.Run("get", "domainmapping", domainName, "-o=jsonpath='{.status.url}'")
assert.NilError(r.T(), err)
// Remove additional spaces and single quotes added to kubectl output
out = strings.Trim(strings.TrimSpace(out), "'")
if len(out) > 0 {
break
}
Expand Down

0 comments on commit c462958

Please sign in to comment.