Software /
code /
prosody
Comparison
spec/core_storagemanager_spec.lua @ 9472:ea40fe484c38
storagemanager tests: Remove debug print()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 11 Oct 2018 14:18:38 +0100 |
parent | 9471:6798fcd25e9c |
child | 9491:89e4cbd1a564 |
comparison
equal
deleted
inserted
replaced
9471:6798fcd25e9c | 9472:ea40fe484c38 |
---|---|
313 assert(archive:append("user-issue1073", prefix.."-2", test_stanza, test_time, "contact@example.com")); | 313 assert(archive:append("user-issue1073", prefix.."-2", test_stanza, test_time, "contact@example.com")); |
314 | 314 |
315 local data = assert(archive:find("user-issue1073", {})); | 315 local data = assert(archive:find("user-issue1073", {})); |
316 local count = 0; | 316 local count = 0; |
317 for id, item, when in data do --luacheck: ignore 213/when | 317 for id, item, when in data do --luacheck: ignore 213/when |
318 print(id) | |
319 count = count + 1; | 318 count = count + 1; |
320 assert.truthy(id); | 319 assert.truthy(id); |
321 assert(st.is_stanza(item)); | 320 assert(st.is_stanza(item)); |
322 end | 321 end |
323 assert.equal(2, count); | 322 assert.equal(2, count); |