Merge pull request #26 from heyitsanthony/fix-32bit-test

fix overflow breaking 32-bit test builds
pull/20/head
Anthony Romano 2017-08-11 09:57:09 -07:00 committed by GitHub
commit 045bd0e3bc
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ func TestDB_Open_InitialMmapSize(t *testing.T) {
path := tempfile()
defer os.Remove(path)
initMmapSize := 1 << 31 // 2GB
initMmapSize := 1 << 30 // 1GB
testWriteSize := 1 << 27 // 134MB
db, err := bolt.Open(path, 0666, &bolt.Options{InitialMmapSize: initMmapSize})