diff --git a/macaroons/constraints_test.go b/macaroons/constraints_test.go
index a0e7c67e9..b5333b03e 100644
--- a/macaroons/constraints_test.go
+++ b/macaroons/constraints_test.go
@@ -99,7 +99,7 @@ func TestIpLockConstraint(t *testing.T) {
 // TestIPLockBadIP tests that an IP constraint cannot be added if the
 // provided string is not a valid IP address.
 func TestIPLockBadIP(t *testing.T) {
-	constraintFunc := macaroons.IPLockConstraint("127.0.0/800");
+	constraintFunc := macaroons.IPLockConstraint("127.0.0/800")
 	testMacaroon := createDummyMacaroon(t)
 	err := constraintFunc(testMacaroon)
 	if err == nil {