diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-07-02 15:27:44 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-07-02 15:27:44 +0100 |
commit | 12a9ab92de04f89aa7847eeb235180dbaa59cf02 (patch) | |
tree | 7e8562854fd582d863757fd2d8fe76e9ac4ec50f /spec | |
parent | 5316b0005e042f1abeb1ac5fed8715ab65e6752c (diff) | |
download | prosody-12a9ab92de04f89aa7847eeb235180dbaa59cf02.tar.gz prosody-12a9ab92de04f89aa7847eeb235180dbaa59cf02.zip |
util.crypto: tests: fix some tests that didn't do much (thanks luacheck!)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/util_crypto_spec.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/util_crypto_spec.lua b/spec/util_crypto_spec.lua index 14c35188..0d7a7ffb 100644 --- a/spec/util_crypto_spec.lua +++ b/spec/util_crypto_spec.lua @@ -133,12 +133,11 @@ describe("util.crypto", function () string.rep("\255", 72); string.rep("\255", 3); }; - for _, sig in ipairs(invalid_sigs) do - local r, s = crypto.parse_ecdsa_signature(""); + for _, invalid_sig in ipairs(invalid_sigs) do + local r, s = crypto.parse_ecdsa_signature(invalid_sig); assert.is_nil(r); assert.is_nil(s); end - end); it("can be built", function () local r, s = crypto.parse_ecdsa_signature(sig); |