We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9533d2 commit 1a4d630Copy full SHA for 1a4d630
1 file changed
test/docker-e2e/resiliency_test.go
@@ -6,6 +6,7 @@ import (
6
"context"
7
"fmt"
8
"io"
9
+ "net"
10
"strings"
11
"testing"
12
"time"
@@ -57,7 +58,7 @@ func (s *DockerTestSuite) TestRollkitNodeRestart() {
57
58
httpPortStr := rollkitNode.GetHostHTTPPort()
59
s.Require().NotEmpty(httpPortStr, "HTTP port should not be empty")
60
- httpPort := strings.Split(httpPortStr, ":")[len(strings.Split(httpPortStr, ":"))-1]
61
+ _, httpPort, err := net.SplitHostPort(httpPortStr)
62
client, err = NewClient("localhost", httpPort)
63
s.Require().NoError(err)
64
})
0 commit comments