mirror of https://github.com/v2ray/v2ray-core
one more test case
parent
c96533f278
commit
a29a6a586d
|
@ -43,6 +43,8 @@ func TestServerPicker(t *testing.T) {
|
||||||
assert.Port(server.Destination().Port()).Equals(2)
|
assert.Port(server.Destination().Port()).Equals(2)
|
||||||
server = picker.PickServer()
|
server = picker.PickServer()
|
||||||
assert.Port(server.Destination().Port()).Equals(3)
|
assert.Port(server.Destination().Port()).Equals(3)
|
||||||
|
server = picker.PickServer()
|
||||||
|
assert.Port(server.Destination().Port()).Equals(1)
|
||||||
|
|
||||||
time.Sleep(2 * time.Second)
|
time.Sleep(2 * time.Second)
|
||||||
server = picker.PickServer()
|
server = picker.PickServer()
|
||||||
|
|
Loading…
Reference in New Issue