Skip to content

Commit 76d16b6

Browse files
authored
Merge pull request #344 from alexanderkjall/fix-test-on-32-bit
fix tests on 32-bit architecture
2 parents c03c664 + 111d702 commit 76d16b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

heed/src/envs/env.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ mod tests {
865865
// We really need this env to be dropped before the read-only access.
866866
let env = unsafe {
867867
EnvOpenOptions::new()
868-
.map_size(16 * 1024 * 1024 * 1024) // 10MB
868+
.map_size(10 * 1024 * 1024) // 10MB
869869
.max_dbs(32)
870870
.open(dir.path())
871871
.unwrap()
@@ -885,7 +885,7 @@ mod tests {
885885
// Open now we do a read-only opening
886886
let env = unsafe {
887887
EnvOpenOptions::new()
888-
.map_size(16 * 1024 * 1024 * 1024) // 10MB
888+
.map_size(10 * 1024 * 1024) // 10MB
889889
.max_dbs(32)
890890
.open(dir.path())
891891
.unwrap()
@@ -915,7 +915,7 @@ mod tests {
915915
// Open now we do a read-only opening
916916
let env = unsafe {
917917
EnvOpenOptions::new()
918-
.map_size(16 * 1024 * 1024 * 1024) // 10MB
918+
.map_size(10 * 1024 * 1024) // 10MB
919919
.max_dbs(32)
920920
.open(dir.path())
921921
.unwrap()

0 commit comments

Comments
 (0)