File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 15
15
package proxycore
16
16
17
17
import (
18
- "github.com/stretchr/testify/assert"
19
18
"testing"
19
+
20
+ "github.com/stretchr/testify/assert"
20
21
)
21
22
22
23
func TestRoundRobinLoadBalancer_NewQueryPlan (t * testing.T ) {
@@ -26,7 +27,7 @@ func TestRoundRobinLoadBalancer_NewQueryPlan(t *testing.T) {
26
27
assert .Nil (t , qp .Next ())
27
28
28
29
newHost := func (addr string ) * Host {
29
- return & Host {endpoint : & defaultEndpoint {addr : addr }}
30
+ return & Host {Endpoint : & defaultEndpoint {addr : addr }}
30
31
}
31
32
32
33
lb .OnEvent (& BootstrapEvent {Hosts : []* Host {newHost ("127.0.0.1" ), newHost ("127.0.0.2" ), newHost ("127.0.0.3" )}})
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ func TestConnectSession(t *testing.T) {
71
71
require .NoError (t , err )
72
72
73
73
newHost := func (addr string ) * Host {
74
- return & Host {endpoint : & defaultEndpoint {addr : addr }}
74
+ return & Host {Endpoint : & defaultEndpoint {addr : addr }}
75
75
}
76
76
77
77
var wg sync.WaitGroup
You can’t perform that action at this time.
0 commit comments