Skip to content

Commit

Permalink
merge devel
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Sep 1, 2023
1 parent 11e86f0 commit 25b27d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mdbx/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,26 +492,26 @@ func setup(t testing.TB) *Env {
return setupFlags(t, 0)
}

func setupFlags(t testing.TB, flags uint) *Env {
func setupFlags(tb testing.TB, flags uint) *Env {
env, err := NewEnv()
if err != nil {
t.Fatalf("env: %s", err)
tb.Fatalf("env: %s", err)
}
path := t.TempDir()
path := tb.TempDir()
err = env.SetOption(OptMaxDB, 1024)
if err != nil {
t.Fatalf("setmaxdbs: %v", err)
tb.Fatalf("setmaxdbs: %v", err)
}
const pageSize = 4096
err = env.SetGeometry(-1, -1, 64*1024*pageSize, -1, -1, pageSize)
if err != nil {
t.Fatalf("setmaxdbs: %v", err)
tb.Fatalf("setmaxdbs: %v", err)
}
err = env.Open(path, flags, 0664)
if err != nil {
t.Fatalf("open: %s", err)
tb.Fatalf("open: %s", err)
}
t.Cleanup(func() {
tb.Cleanup(func() {
env.Close()
})
return env
Expand Down

0 comments on commit 25b27d8

Please sign in to comment.