Software /
code /
prosody
Diff
spec/util_cache_spec.lua @ 10836:93019f3edd68
spec/storage: Reset build context of test stanza make comparisons easier
While building a stanza there's a .last_add field keeping track of where
in the XML tree tags are being added. This field does not survive a
roundtrip through preserialize / deserialize. :reset() removes this,
which simplifes comparisons after such a roundtrip.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 11 May 2020 21:41:02 +0200 (2020-05-11) |
parent | 9323:3259653512e7 |
child | 11366:618ab9bba1c2 |