spec/core_storagemanager_spec.lua
changeset 11358 10fba62332c5
parent 11357 367e6beaf8ab
child 11428 2358299bc928
--- a/spec/core_storagemanager_spec.lua	Mon Feb 01 12:17:56 2021 +0100
+++ b/spec/core_storagemanager_spec.lua	Mon Feb 01 12:47:05 2021 +0100
@@ -556,7 +556,7 @@
 					local id = archive:append("mapuser", nil, test_stanza, test_time, "contact@example.com");
 					do
 						local stanza_roundtrip, when, with = archive:get("mapuser", id);
-						assert.same(test_stanza, stanza_roundtrip, "same stanza is returned");
+						assert.same(tostring(test_stanza), tostring(stanza_roundtrip), "same stanza is returned");
 						assert.equal(test_time, when, "same 'when' is returned");
 						assert.equal("contact@example.com", with, "same 'with' is returned");
 					end
@@ -568,7 +568,7 @@
 
 					do
 						local replaced, when, with = archive:get("mapuser", id);
-						assert.same(replacement_stanza, replaced, "replaced stanza is returned");
+						assert.same(tostring(replacement_stanza), tostring(replaced), "replaced stanza is returned");
 						assert.equal(test_time+1, when, "modified 'when' is returned");
 						assert.equal("contact@example.com", with, "original 'with' is returned");
 					end