Skip to content

Commit

Permalink
fix test in releaserange (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
WIZARD-CXY authored and xiang90 committed Jan 24, 2019
1 parent f0ad07c commit 26245f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freelist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func TestFreelist_releaseRange(t *testing.T) {
{id: 9, n: 2, allocTxn: 175, freeTxn: 200},
},
releaseRanges: []testRange{{50, 149}, {151, 300}},
wantFree: []pgid{4, 9},
wantFree: []pgid{4, 9, 10},
},
}

Expand All @@ -160,7 +160,7 @@ func TestFreelist_releaseRange(t *testing.T) {
}

for _, p := range c.pagesIn {
f.free(p.freeTxn, &page{id: p.id})
f.free(p.freeTxn, &page{id: p.id, overflow: uint32(p.n - 1)})
}

for _, r := range c.releaseRanges {
Expand Down

0 comments on commit 26245f2

Please sign in to comment.