aboutsummaryrefslogtreecommitdiff
path: root/bucket_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bucket_test.go')
-rw-r--r--bucket_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/bucket_test.go b/bucket_test.go
index 99fdad8..029ff2b 100644
--- a/bucket_test.go
+++ b/bucket_test.go
@@ -674,8 +674,6 @@ func TestBucket_Stats_RandomFill(t *testing.T) {
}
withOpenDB(func(db *DB, path string) {
- db.FillPercent = 0.9
-
// Add a set of values in random order. It will be the same random
// order so we can maintain consistency between test runs.
var count int
@@ -683,6 +681,7 @@ func TestBucket_Stats_RandomFill(t *testing.T) {
for _, i := range r.Perm(1000) {
db.Update(func(tx *Tx) error {
b, _ := tx.CreateBucketIfNotExists([]byte("woojits"))
+ b.FillPercent = 0.9
for _, j := range r.Perm(100) {
index := (j * 10000) + i
b.Put([]byte(fmt.Sprintf("%d000000000000000", index)), []byte("0000000000"))