aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-01-13 14:53:40 +0000
committerMatthew Wild <mwild1@gmail.com>2023-01-13 14:53:40 +0000
commit4767b898221cc807a7e75c52976bc78bec53e6c5 (patch)
treef0e3ace420b830fb24a9681d794e9fcc1298a3b3 /spec
parent99748c56551fa06f1f8e3e14c29d8e474724301f (diff)
downloadprosody-4767b898221cc807a7e75c52976bc78bec53e6c5.tar.gz
prosody-4767b898221cc807a7e75c52976bc78bec53e6c5.zip
spec: Suppress some harmless luacheck warnings in tests
Diffstat (limited to 'spec')
-rw-r--r--spec/util_hashes_spec.lua2
-rw-r--r--spec/util_paseto_spec.lua1
2 files changed, 3 insertions, 0 deletions
diff --git a/spec/util_hashes_spec.lua b/spec/util_hashes_spec.lua
index f9f1633e..c4b1841e 100644
--- a/spec/util_hashes_spec.lua
+++ b/spec/util_hashes_spec.lua
@@ -4,6 +4,8 @@ local hex = require "util.hex";
-- Also see spec for util.hmac where HMAC test cases reside
+--luacheck: ignore 631
+
describe("PBKDF2-HMAC-SHA1", function ()
it("test vector 1", function ()
local P = "password"
diff --git a/spec/util_paseto_spec.lua b/spec/util_paseto_spec.lua
index 8cad8c72..417278b1 100644
--- a/spec/util_paseto_spec.lua
+++ b/spec/util_paseto_spec.lua
@@ -157,6 +157,7 @@ describe("util.paseto", function ()
local key = paseto.v3_local.new_key();
local sign, verify = paseto.v3_local.init(key);
+ --luacheck: ignore 211/sign2
local key2 = paseto.v3_local.new_key();
local sign2, verify2 = paseto.v3_local.init(key2);