Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
Ensure max testdata range is in bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Jan 30, 2015
1 parent 61a90b2 commit a9c8e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func test(t *testing.T, s testDB) (panicked error) {
}

max := len(testdata)
if n := *oM; n != 0 {
if n := *oM; n != 0 && n < max {
max = n
}
for itest, test := range testdata[*oN:max] {
Expand Down

0 comments on commit a9c8e0e

Please sign in to comment.