Skip to content

Commit 8d1efdc

Browse files
committed
Fix tests
1 parent f0a42d2 commit 8d1efdc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

proxycore/lb_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
package proxycore
1616

1717
import (
18-
"github.com/stretchr/testify/assert"
1918
"testing"
19+
20+
"github.com/stretchr/testify/assert"
2021
)
2122

2223
func TestRoundRobinLoadBalancer_NewQueryPlan(t *testing.T) {
@@ -26,7 +27,7 @@ func TestRoundRobinLoadBalancer_NewQueryPlan(t *testing.T) {
2627
assert.Nil(t, qp.Next())
2728

2829
newHost := func(addr string) *Host {
29-
return &Host{endpoint: &defaultEndpoint{addr: addr}}
30+
return &Host{Endpoint: &defaultEndpoint{addr: addr}}
3031
}
3132

3233
lb.OnEvent(&BootstrapEvent{Hosts: []*Host{newHost("127.0.0.1"), newHost("127.0.0.2"), newHost("127.0.0.3")}})

proxycore/session_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func TestConnectSession(t *testing.T) {
7171
require.NoError(t, err)
7272

7373
newHost := func(addr string) *Host {
74-
return &Host{endpoint: &defaultEndpoint{addr: addr}}
74+
return &Host{Endpoint: &defaultEndpoint{addr: addr}}
7575
}
7676

7777
var wg sync.WaitGroup

0 commit comments

Comments
 (0)