aboutsummaryrefslogtreecommitdiff
path: root/db_test.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-05-21 13:46:12 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-05-21 13:46:12 -0600
commit7432bc341f8bbfc73eefc3278f2698e712e516b8 (patch)
tree33897520b5bd98383fe3b17cc9090e931c690b9c /db_test.go
parentMerge pull request #171 from Shopify/tx_copy (diff)
parentFix freelist allocate(). (diff)
downloaddedo-7432bc341f8bbfc73eefc3278f2698e712e516b8.tar.gz
dedo-7432bc341f8bbfc73eefc3278f2698e712e516b8.tar.xz
Merge pull request #169 from benbjohnson/allocation
Fix freelist allocation direction.
Diffstat (limited to 'db_test.go')
-rw-r--r--db_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/db_test.go b/db_test.go
index 7b1f554..b85f8cb 100644
--- a/db_test.go
+++ b/db_test.go
@@ -295,10 +295,10 @@ func TestDB_Consistency(t *testing.T) {
assert.Equal(t, "free", p.Type)
}
if p, _ := tx.Page(4); assert.NotNil(t, p) {
- assert.Equal(t, "freelist", p.Type)
+ assert.Equal(t, "leaf", p.Type) // root leaf
}
if p, _ := tx.Page(5); assert.NotNil(t, p) {
- assert.Equal(t, "leaf", p.Type) // root leaf
+ assert.Equal(t, "freelist", p.Type)
}
p, _ := tx.Page(6)
assert.Nil(t, p)