sub _clear {
my $self = shift;
- while ( my $key = $self->first_key ) {
+ while ( defined(my $key = $self->first_key) ) {
$self->_engine->delete_key( $self, $key, $key );
}
##
ok( $db->clear(), "clear() returns true" );
-# ~~~ Temporary band-aid until the fix for RT#50541 is merged
-delete $db->{0};
-
is( scalar keys %$db, 0, "After clear(), everything is removed" );
##