Browse Source

Update port range test

V2Ray 10 năm trước cách đây
mục cha
commit
cb19e4613f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/point/config/json/portrange_test.go

+ 1 - 1
app/point/config/json/portrange_test.go

@@ -55,7 +55,7 @@ func TestOverRangeStringPort(t *testing.T) {
 	assert := unit.Assert(t)
 
 	var portRange PortRange
-	err := json.Unmarshal([]byte("\"-1\""), &portRange)
+	err := json.Unmarshal([]byte("\"65536\""), &portRange)
 	assert.Error(err).Equals(InvalidPortRange)
 
 	err = json.Unmarshal([]byte("\"70000-80000\""), &portRange)