diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-06-28 12:26:04 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-06-28 12:26:04 +0100 |
commit | c1033eae3e20a5d6e836c306eabc0632369276db (patch) | |
tree | 0d8e37656193187c6f4cfaa0cd5247f0f36202b8 /spec/util_dbuffer_spec.lua | |
parent | 99974464b36197231849c886ffa8f936c6c71c89 (diff) | |
download | prosody-c1033eae3e20a5d6e836c306eabc0632369276db.tar.gz prosody-c1033eae3e20a5d6e836c306eabc0632369276db.zip |
util.dbuffer: Don't use # operator in tests, Lua 5.1 doesn't support __len
Diffstat (limited to 'spec/util_dbuffer_spec.lua')
-rw-r--r-- | spec/util_dbuffer_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util_dbuffer_spec.lua b/spec/util_dbuffer_spec.lua index 854f3125..1a0c2992 100644 --- a/spec/util_dbuffer_spec.lua +++ b/spec/util_dbuffer_spec.lua @@ -26,7 +26,7 @@ describe("util.dbuffer", function () it("works", function () assert.truthy(b:write("hello world")); assert.truthy(b:discard(6)); - assert.equal(5, #b); + assert.equal(5, b:length()); assert.equal("world", b:read(5)); end); end); |