while (my ($raw) = $stream->next) {
my $obj = do {
if (my ($obj) = $self->_key_cache_get_raw($raw)) {
- $self->_merge($obj, $raw)
+ $obj # can't $self->_merge($obj, $raw) since $obj might have changed
} else {
$self->_add_to_key_cache($self->_inflate($raw))
}
ok(!defined($set->get({ id => -1 })), 'undef on missing id');
+$pterry->{name} = 'Pterry';
+
+is_deeply([ sort_set $set->flatten ], \@expect, 'Basic data after fetch by id');
+
done_testing;