Skip to content

Commit

Permalink
Use constants in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kradalby committed Jun 11, 2022
1 parent 7cd0f5e commit 569f3ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ func (s *Suite) TestProtocolParsing(c *check.C) {
c.Assert(rules, check.NotNil)

c.Assert(rules, check.HasLen, 3)
c.Assert(rules[0].IPProto[0], check.Equals, 6) // tcp
c.Assert(rules[1].IPProto[0], check.Equals, 17) // udp
c.Assert(rules[2].IPProto[1], check.Equals, 58) // icmp v4
c.Assert(rules[0].IPProto[0], check.Equals, protocolTCP)
c.Assert(rules[1].IPProto[0], check.Equals, protocolUDP)
c.Assert(rules[2].IPProto[1], check.Equals, protocolIPv6ICMP)
}

func (s *Suite) TestPortWildcard(c *check.C) {
Expand Down

0 comments on commit 569f3ca

Please sign in to comment.