Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
501f5aea
Commit
501f5aea
authored
3 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go/zodb/btree: tests: Don't forget to close storage
NOTE: db was already being closed in the test's code.
parent
762f2161
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
go/zodb/btree/btree_test.go
go/zodb/btree/btree_test.go
+4
-2
No files found.
go/zodb/btree/btree_test.go
View file @
501f5aea
...
...
@@ -105,6 +105,10 @@ func TestBTree(t *testing.T) {
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
defer
func
()
{
err
:=
stor
.
Close
();
X
(
err
)
}()
db
:=
zodb
.
NewDB
(
stor
,
&
zodb
.
DBOptions
{})
defer
func
()
{
err
:=
db
.
Close
();
X
(
err
)
...
...
@@ -118,8 +122,6 @@ func TestBTree(t *testing.T) {
t
.
Fatal
(
err
)
}
// XXX close db/stor
// go through small test Buckets/BTrees and verify that Get(key) is as expected.
for
_
,
tt
:=
range
smallTestv
{
xobj
,
err
:=
conn
.
Get
(
ctx
,
tt
.
oid
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment