Skip to content

Commit 1289795

Browse files
author
Mikhail Podtserkovskiy
committed
QA-5454: fix
1 parent f17e6a7 commit 1289795

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

jsonwire/interfaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type ClientFactoryInterface interface {
55
}
66

77
type ClientInterface interface {
8-
Status() (*Message, error)
8+
Health() (*Message, error)
99
Sessions() (*Sessions, error)
1010
CloseSession(sessionID string) (*Message, error)
1111
Address() string

pool/strategy/kubernetes/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Loop:
6363
default:
6464
time.Sleep(time.Second)
6565
log.Debugln("start request")
66-
message, err := client.Status()
66+
message, err := client.Health()
6767
if err != nil {
6868
log.Debugf("fail request, %v", err)
6969
continue

pool/strategy/persistent/strategy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (s *Strategy) Reserve(desiredCaps capabilities.Capabilities) (pool.Node, er
4343
break
4444
}
4545
client := s.clientFactory.Create(node.Address)
46-
message, err := client.Status()
46+
message, err := client.Health()
4747
if err != nil {
4848
log.Infof("Remove unavailable node [%s], %s", node, err)
4949
err = s.storage.Remove(node)

selenium/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (c *Client) Sessions() (*jsonwire.Sessions, error) {
5353
return &sessions, err
5454
}
5555

56-
func (c *Client) Status() (*jsonwire.Message, error) {
56+
func (c *Client) Health() (*jsonwire.Message, error) {
5757
reqURL := url.URL{
5858
Scheme: PROTOCOL,
5959
Path: "/wd/hub/status",

wda/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ func (c *Client) Sessions() (*jsonwire.Sessions, error) {
4040
return &sessions, nil
4141
}
4242

43-
func (c *Client) Status() (*jsonwire.Message, error) {
43+
func (c *Client) Health() (*jsonwire.Message, error) {
4444
reqURL := url.URL{
4545
Scheme: PROTOCOL,
46-
Path: "/status",
46+
Path: "/health",
4747
Host: c.Address(),
4848
}
4949
request, err := newRequest(http.MethodGet, reqURL.String(), "")

0 commit comments

Comments
 (0)