Extend testing

In particular discover that after objects are modifed (outside of the LMD window) - they no longer appear in results for queries in the LMD window.
This commit is contained in:
Martin Sumner 2018-10-31 21:37:53 +00:00
parent 62f1302305
commit 376407fa66
2 changed files with 95 additions and 7 deletions

View file

@ -493,7 +493,10 @@ update_some_objects(Bookie, ObjList, SampleSize) ->
VC = Obj#r_object.vclock,
VC0 = update_vclock(VC),
[C] = Obj#r_object.contents,
C0 = C#r_content{value = leveled_rand:rand_bytes(512)},
MD = C#r_content.metadata,
MD0 = dict:store(?MD_LASTMOD, os:timestamp(), MD),
C0 = C#r_content{value = leveled_rand:rand_bytes(512),
metadata = MD0},
UpdObj = Obj#r_object{vclock = VC0, contents = [C0]},
{R, UpdObj, Spec}
end,