From 7e6b45ace4d9ee7d1f29c0ef169adf0cecd6b088 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 22 Feb 2018 10:34:14 +0100 Subject: [PATCH] format --- app/policy/manager_test.go | 2 +- testing/scenarios/command_test.go | 4 ++-- testing/scenarios/policy_test.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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},