From 569f3caab99a83cb98b458fdfca56a4e34f5f024 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sat, 11 Jun 2022 13:17:07 +0000 Subject: [PATCH] Use constants in tests --- acls_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acls_test.go b/acls_test.go index abe523b5..9e24f99f 100644 --- a/acls_test.go +++ b/acls_test.go @@ -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) {