diff --git a/swh/storage/in_memory.py b/swh/storage/in_memory.py --- a/swh/storage/in_memory.py +++ b/swh/storage/in_memory.py @@ -215,7 +215,10 @@ keys = list(set.intersection(*found)) # FIXME: should really be a list of all the objects found - return copy.deepcopy(self._contents[keys[0]]) + list_to_return = [] + for i in range(len(keys)): + list_to_return.append(copy.deepcopy(self._contents[keys[i]])) + return list_to_return def content_missing(self, contents, key_hash='sha1'): """List content missing from storage