1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00
This commit is contained in:
Darien Raymond 2018-02-22 10:34:14 +01:00
parent 1077e33d62
commit 7e6b45ace4
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
3 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ func TestPolicy(t *testing.T) {
manager, err := New(context.Background(), &Config{
Level: map[uint32]*Policy{
0: &Policy{
0: {
Timeout: &Policy_Timeout{
Handshake: &Second{
Value: 2,

View File

@ -170,7 +170,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
}),
serial.ToTypedMessage(&policy.Config{
Level: map[uint32]*policy.Policy{
0: &policy.Policy{
0: {
Timeout: &policy.Policy_Timeout{
UplinkOnly: &policy.Second{Value: 0},
DownlinkOnly: &policy.Second{Value: 0},
@ -224,7 +224,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
App: []*serial.TypedMessage{
serial.ToTypedMessage(&policy.Config{
Level: map[uint32]*policy.Policy{
0: &policy.Policy{
0: {
Timeout: &policy.Policy_Timeout{
UplinkOnly: &policy.Second{Value: 0},
DownlinkOnly: &policy.Second{Value: 0},

View File

@ -54,7 +54,7 @@ func TestVMessClosing(t *testing.T) {
App: []*serial.TypedMessage{
serial.ToTypedMessage(&policy.Config{
Level: map[uint32]*policy.Policy{
0: &policy.Policy{
0: {
Timeout: &policy.Policy_Timeout{
UplinkOnly: &policy.Second{Value: 0},
DownlinkOnly: &policy.Second{Value: 0},
@ -93,7 +93,7 @@ func TestVMessClosing(t *testing.T) {
App: []*serial.TypedMessage{
serial.ToTypedMessage(&policy.Config{
Level: map[uint32]*policy.Policy{
0: &policy.Policy{
0: {
Timeout: &policy.Policy_Timeout{
UplinkOnly: &policy.Second{Value: 0},
DownlinkOnly: &policy.Second{Value: 0},