@@ -306,12 +306,12 @@ func TestUDPNetworkUnboundClientAPI(t *testing.T) {
306306 conn1 , err := udpConnect (ctx , nil , []any {"" , 0 })
307307 require .Nil (t , err )
308308
309- conn2 , err := udpConnect (ctx , nil , []any {"0.0.0.0" , 9900 })
309+ conn2 , err := udpConnect (ctx , nil , []any {"0.0.0.0" , 9901 })
310310 require .Nil (t , err )
311311 require .NotEqual (t , conn1 , conn2 )
312312
313313 {
314- res , err := udpWrite (ctx , nil , []any {conn1 , "127.0.0.1" , 9900 , []byte ("Hello" )})
314+ res , err := udpWrite (ctx , nil , []any {conn1 , "127.0.0.1" , 9901 , []byte ("Hello" )})
315315 require .Nil (t , err )
316316 require .Equal (t , 5 , res )
317317 }
@@ -329,12 +329,12 @@ func TestUDPNetworkUnboundClientAPI(t *testing.T) {
329329 require .Equal (t , []uint8 ("llo" ), res2 )
330330 }
331331 {
332- res , err := udpWrite (ctx , nil , []any {conn1 , "127.0.0.1" , 9900 , []byte ("One" )})
332+ res , err := udpWrite (ctx , nil , []any {conn1 , "127.0.0.1" , 9901 , []byte ("One" )})
333333 require .Nil (t , err )
334334 require .Equal (t , 3 , res )
335335 }
336336 {
337- res , err := udpWrite (ctx , nil , []any {conn1 , "127.0.0.1" , 9900 , []byte ("Two" )})
337+ res , err := udpWrite (ctx , nil , []any {conn1 , "127.0.0.1" , 9901 , []byte ("Two" )})
338338 require .Nil (t , err )
339339 require .Equal (t , 3 , res )
340340 }
@@ -360,7 +360,7 @@ func TestUDPNetworkUnboundClientAPI(t *testing.T) {
360360 // Check timeouts
361361 go func () {
362362 time .Sleep (200 * time .Millisecond )
363- res , err := udpWrite (ctx , nil , []any {conn1 , "127.0.0.1" , 9900 , []byte ("Three" )})
363+ res , err := udpWrite (ctx , nil , []any {conn1 , "127.0.0.1" , 9901 , []byte ("Three" )})
364364 require .Nil (t , err )
365365 require .Equal (t , 5 , res )
366366 }()
0 commit comments