diff --git a/go/lib/pathpol/acl_test.go b/go/lib/pathpol/acl_test.go index a49f19aa9e..68268009fb 100644 --- a/go/lib/pathpol/acl_test.go +++ b/go/lib/pathpol/acl_test.go @@ -36,7 +36,7 @@ func TestNewACL(t *testing.T) { }, "No default entry": { Entries: []*ACLEntry{ - &ACLEntry{Action: Allow, Rule: mustHopPredicate(t, "1-0#0")}, + {Action: Allow, Rule: mustHopPredicate(t, "1-0#0")}, }, ExpectedErr: ErrNoDefault, }, @@ -45,8 +45,8 @@ func TestNewACL(t *testing.T) { }, "Entry with hop predicates": { Entries: []*ACLEntry{ - &ACLEntry{Action: Allow, Rule: mustHopPredicate(t, "1-0#0")}, - &ACLEntry{Action: Deny, Rule: mustHopPredicate(t, "0-0#0")}, + {Action: Allow, Rule: mustHopPredicate(t, "1-0#0")}, + {Action: Deny, Rule: mustHopPredicate(t, "0-0#0")}, }, }, } diff --git a/go/lib/pathpol/sequence_test.go b/go/lib/pathpol/sequence_test.go index 6a5aa558d0..1db6b2e4fe 100644 --- a/go/lib/pathpol/sequence_test.go +++ b/go/lib/pathpol/sequence_test.go @@ -19,9 +19,10 @@ import ( "testing" "github.com/golang/mock/gomock" + "github.com/stretchr/testify/assert" + "github.com/scionproto/scion/go/lib/addr" "github.com/scionproto/scion/go/lib/xtest" - "github.com/stretchr/testify/assert" ) func TestNewSequence(t *testing.T) {