Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Apr 15, 2024
1 parent 0d9682a commit 91f082f
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions mdbx/txn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,27 +419,7 @@ func TestTxn_OpenDBI_emptyName(t *testing.T) {
}

func TestTxn_OpenDBI_zero(t *testing.T) {
env, err := NewEnv()
if err != nil {
t.Fatalf("env: %s", err)
}
path := t.TempDir()
err = env.SetOption(OptMaxDB, 1024)
if err != nil {
t.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)
}
err = env.Open(path, 0, 0664)
if err != nil {
t.Fatalf("open: %s", err)
}
t.Cleanup(func() {
env.Close()
})
env, _ := setup(t)

txn, err := env.BeginTxn(nil, 0)
if err != nil {
Expand Down

0 comments on commit 91f082f

Please sign in to comment.