diff --git a/app/policy/manager_test.go b/app/policy/manager_test.go index d56afb86..dde4e2ac 100644 --- a/app/policy/manager_test.go +++ b/app/policy/manager_test.go @@ -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, diff --git a/testing/scenarios/command_test.go b/testing/scenarios/command_test.go index f27b4923..b15431f6 100644 --- a/testing/scenarios/command_test.go +++ b/testing/scenarios/command_test.go @@ -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}, diff --git a/testing/scenarios/policy_test.go b/testing/scenarios/policy_test.go index b3187cc6..9e8b7ce7 100644 --- a/testing/scenarios/policy_test.go +++ b/testing/scenarios/policy_test.go @@ -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},