Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Commit

Permalink
Merge pull request #439 from MJDSys/speed_up_test
Browse files Browse the repository at this point in the history
In TestBucket_Delete_FreelistOverflow, use Cursor.Delete to remove records.
  • Loading branch information
benbjohnson committed Oct 19, 2015
2 parents 449a2c2 + a0c33d0 commit 0707057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func TestBucket_Delete_FreelistOverflow(t *testing.T) {
b := tx.Bucket([]byte("0"))
c := b.Cursor()
for k, _ := c.First(); k != nil; k, _ = c.Next() {
b.Delete(k)
c.Delete()
}
return nil
})
Expand Down

0 comments on commit 0707057

Please sign in to comment.