mirror of https://github.com/v2ray/v2ray-core
Update port range test
parent
6faff6d514
commit
cb19e4613f
|
@ -55,7 +55,7 @@ func TestOverRangeStringPort(t *testing.T) {
|
||||||
assert := unit.Assert(t)
|
assert := unit.Assert(t)
|
||||||
|
|
||||||
var portRange PortRange
|
var portRange PortRange
|
||||||
err := json.Unmarshal([]byte("\"-1\""), &portRange)
|
err := json.Unmarshal([]byte("\"65536\""), &portRange)
|
||||||
assert.Error(err).Equals(InvalidPortRange)
|
assert.Error(err).Equals(InvalidPortRange)
|
||||||
|
|
||||||
err = json.Unmarshal([]byte("\"70000-80000\""), &portRange)
|
err = json.Unmarshal([]byte("\"70000-80000\""), &portRange)
|
||||||
|
|
Loading…
Reference in New Issue