diff options
author | Martin Kobetic <mkobetic@gmail.com> | 2014-06-17 18:40:56 +0000 |
---|---|---|
committer | Martin Kobetic <mkobetic@gmail.com> | 2014-06-17 18:40:56 +0000 |
commit | c105316292b7aef09c1eb260fb5f5c8f9f07ec3f (patch) | |
tree | 9b98a0d246e36d43c33507dbdcf37634a79a2f04 /db_test.go | |
parent | Document key/value lifecycle. (diff) | |
download | dedo-c105316292b7aef09c1eb260fb5f5c8f9f07ec3f.tar.gz dedo-c105316292b7aef09c1eb260fb5f5c8f9f07ec3f.tar.xz |
add freelist stats to db stats
Diffstat (limited to 'db_test.go')
-rw-r--r-- | db_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -253,7 +253,8 @@ func TestDB_Stats(t *testing.T) { return err }) stats := db.Stats() - assert.Equal(t, 2, stats.TxStats.PageCount) + assert.Equal(t, 2, stats.TxStats.PageCount, "PageCount") + assert.Equal(t, 2, stats.FreelistN, "FreelistN %d", db.freelist.count()) }) } |