@@ -140,18 +140,18 @@ func TestClient(t *testing.T) {
140140 })
141141 t .Run ("unix" , func (t * testing.T ) {
142142 t .Run ("1-loop" , func (t * testing.T ) {
143- runClient (t , "unix" , "gnet1.sock" , & testConf {false , 0 , false , false , false , false , 10 , RoundRobin })
143+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {false , 0 , false , false , false , false , 10 , RoundRobin })
144144 })
145145 t .Run ("N-loop" , func (t * testing.T ) {
146- runClient (t , "unix" , "gnet2.sock" , & testConf {false , 0 , false , true , false , false , 10 , SourceAddrHash })
146+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {false , 0 , false , true , false , false , 10 , SourceAddrHash })
147147 })
148148 })
149149 t .Run ("unix-async" , func (t * testing.T ) {
150150 t .Run ("1-loop" , func (t * testing.T ) {
151- runClient (t , "unix" , "gnet1.sock" , & testConf {false , 0 , false , false , true , false , 10 , RoundRobin })
151+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {false , 0 , false , false , true , false , 10 , RoundRobin })
152152 })
153153 t .Run ("N-loop" , func (t * testing.T ) {
154- runClient (t , "unix" , "gnet2.sock" , & testConf {false , 0 , false , true , true , false , 10 , SourceAddrHash })
154+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {false , 0 , false , true , true , false , 10 , SourceAddrHash })
155155 })
156156 })
157157 })
@@ -191,18 +191,18 @@ func TestClient(t *testing.T) {
191191 })
192192 t .Run ("unix" , func (t * testing.T ) {
193193 t .Run ("1-loop" , func (t * testing.T ) {
194- runClient (t , "unix" , "gnet1.sock" , & testConf {true , 0 , false , false , false , false , 10 , RoundRobin })
194+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 0 , false , false , false , false , 10 , RoundRobin })
195195 })
196196 t .Run ("N-loop" , func (t * testing.T ) {
197- runClient (t , "unix" , "gnet2.sock" , & testConf {true , 0 , false , true , false , false , 10 , SourceAddrHash })
197+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 0 , false , true , false , false , 10 , SourceAddrHash })
198198 })
199199 })
200200 t .Run ("unix-async" , func (t * testing.T ) {
201201 t .Run ("1-loop" , func (t * testing.T ) {
202- runClient (t , "unix" , "gnet1.sock" , & testConf {true , 0 , false , false , true , false , 10 , RoundRobin })
202+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 0 , false , false , true , false , 10 , RoundRobin })
203203 })
204204 t .Run ("N-loop" , func (t * testing.T ) {
205- runClient (t , "unix" , "gnet2.sock" , & testConf {true , 0 , false , true , true , false , 10 , SourceAddrHash })
205+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 0 , false , true , true , false , 10 , SourceAddrHash })
206206 })
207207 })
208208 })
@@ -242,18 +242,18 @@ func TestClient(t *testing.T) {
242242 })
243243 t .Run ("unix" , func (t * testing.T ) {
244244 t .Run ("1-loop" , func (t * testing.T ) {
245- runClient (t , "unix" , "gnet1.sock" , & testConf {true , 1 << 18 , false , false , false , false , 10 , RoundRobin })
245+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 1 << 18 , false , false , false , false , 10 , RoundRobin })
246246 })
247247 t .Run ("N-loop" , func (t * testing.T ) {
248- runClient (t , "unix" , "gnet2.sock" , & testConf {true , 1 << 19 , false , true , false , false , 10 , SourceAddrHash })
248+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 1 << 19 , false , true , false , false , 10 , SourceAddrHash })
249249 })
250250 })
251251 t .Run ("unix-async" , func (t * testing.T ) {
252252 t .Run ("1-loop" , func (t * testing.T ) {
253- runClient (t , "unix" , "gnet1.sock" , & testConf {true , 1 << 18 , false , false , true , false , 10 , RoundRobin })
253+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 1 << 18 , false , false , true , false , 10 , RoundRobin })
254254 })
255255 t .Run ("N-loop" , func (t * testing.T ) {
256- runClient (t , "unix" , "gnet2.sock" , & testConf {true , 1 << 19 , false , true , true , false , 10 , SourceAddrHash })
256+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 1 << 19 , false , true , true , false , 10 , SourceAddrHash })
257257 })
258258 })
259259 })
@@ -293,18 +293,18 @@ func TestClient(t *testing.T) {
293293 })
294294 t .Run ("unix" , func (t * testing.T ) {
295295 t .Run ("1-loop" , func (t * testing.T ) {
296- runClient (t , "unix" , "gnet1.sock" , & testConf {false , 0 , true , false , false , false , 10 , RoundRobin })
296+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {false , 0 , true , false , false , false , 10 , RoundRobin })
297297 })
298298 t .Run ("N-loop" , func (t * testing.T ) {
299- runClient (t , "unix" , "gnet2.sock" , & testConf {false , 0 , true , true , false , false , 10 , LeastConnections })
299+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {false , 0 , true , true , false , false , 10 , LeastConnections })
300300 })
301301 })
302302 t .Run ("unix-async" , func (t * testing.T ) {
303303 t .Run ("1-loop" , func (t * testing.T ) {
304- runClient (t , "unix" , "gnet1.sock" , & testConf {false , 0 , true , false , true , false , 10 , RoundRobin })
304+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {false , 0 , true , false , true , false , 10 , RoundRobin })
305305 })
306306 t .Run ("N-loop" , func (t * testing.T ) {
307- runClient (t , "unix" , "gnet2.sock" , & testConf {false , 0 , true , true , true , false , 10 , LeastConnections })
307+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {false , 0 , true , true , true , false , 10 , LeastConnections })
308308 })
309309 })
310310 })
@@ -344,18 +344,18 @@ func TestClient(t *testing.T) {
344344 })
345345 t .Run ("unix" , func (t * testing.T ) {
346346 t .Run ("1-loop" , func (t * testing.T ) {
347- runClient (t , "unix" , "gnet1.sock" , & testConf {true , 0 , true , false , false , false , 10 , RoundRobin })
347+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 0 , true , false , false , false , 10 , RoundRobin })
348348 })
349349 t .Run ("N-loop" , func (t * testing.T ) {
350- runClient (t , "unix" , "gnet2.sock" , & testConf {true , 0 , true , true , false , false , 10 , LeastConnections })
350+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 0 , true , true , false , false , 10 , LeastConnections })
351351 })
352352 })
353353 t .Run ("unix-async" , func (t * testing.T ) {
354354 t .Run ("1-loop" , func (t * testing.T ) {
355- runClient (t , "unix" , "gnet1.sock" , & testConf {true , 0 , true , false , true , false , 10 , RoundRobin })
355+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 0 , true , false , true , false , 10 , RoundRobin })
356356 })
357357 t .Run ("N-loop" , func (t * testing.T ) {
358- runClient (t , "unix" , "gnet2.sock" , & testConf {true , 0 , true , true , true , false , 10 , LeastConnections })
358+ runClient (t , "unix" , testUnixAddr ( t ) , & testConf {true , 0 , true , true , true , false , 10 , LeastConnections })
359359 })
360360 })
361361 })
@@ -543,7 +543,7 @@ func startGnetClient(t *testing.T, cli *Client, network, addr string, multicore,
543543 }
544544 if netDial {
545545 var netConn net.Conn
546- netConn , err = stdDial (network , addr )
546+ netConn , err = net . Dial (network , addr )
547547 assert .NoError (t , err )
548548 c , err = cli .EnrollContext (netConn , handler )
549549 } else {
0 commit comments