diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-07 12:09:36 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-07 12:09:36 -0600 |
commit | 3d2e092a5deea650f24cfb3d5fb70be7e43b6066 (patch) | |
tree | 3fb231ac0b39c9e45c041fcb9889ae0b11e3741c /db_test.go | |
parent | Merge pull request #153 from benbjohnson/consolidate (diff) | |
parent | Minor fixes. (diff) | |
download | dedo-3d2e092a5deea650f24cfb3d5fb70be7e43b6066.tar.gz dedo-3d2e092a5deea650f24cfb3d5fb70be7e43b6066.tar.xz |
Merge pull request #154 from benbjohnson/inline-buckets
(wip) Add inline bucket support.
Diffstat (limited to 'db_test.go')
-rw-r--r-- | db_test.go | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -275,7 +275,7 @@ func TestDB_Stats(t *testing.T) { return err }) stats := db.Stats() - assert.Equal(t, 3, stats.TxStats.PageCount) + assert.Equal(t, 2, stats.TxStats.PageCount) }) } @@ -324,13 +324,7 @@ func TestDB_Consistency(t *testing.T) { if p, _ := tx.Page(5); assert.NotNil(t, p) { assert.Equal(t, "leaf", p.Type) // root leaf } - if p, _ := tx.Page(6); assert.NotNil(t, p) { - assert.Equal(t, "leaf", p.Type) - } - if p, _ := tx.Page(7); assert.NotNil(t, p) { - assert.Equal(t, "free", p.Type) - } - p, _ := tx.Page(8) + p, _ := tx.Page(6) assert.Nil(t, p) return nil }) |