Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
a1897063
Commit
a1897063
authored
Mar 11, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cf2f3cef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
go/zodb/persistent_test.go
go/zodb/persistent_test.go
+3
-5
No files found.
go/zodb/persistent_test.go
View file @
a1897063
...
@@ -30,7 +30,6 @@ import (
...
@@ -30,7 +30,6 @@ import (
"lab.nexedi.com/kirr/neo/go/transaction"
"lab.nexedi.com/kirr/neo/go/transaction"
"lab.nexedi.com/kirr/go123/exc"
"lab.nexedi.com/kirr/go123/mem"
"lab.nexedi.com/kirr/go123/mem"
assert
"github.com/stretchr/testify/require"
assert
"github.com/stretchr/testify/require"
)
)
...
@@ -231,14 +230,14 @@ type tPersistentConn struct {
...
@@ -231,14 +230,14 @@ type tPersistentConn struct {
}
}
// testdb creates and initializes new test database.
// testdb creates and initializes new test database.
func
testdb
(
t0
*
testing
.
T
)
*
tPersistentDB
{
func
testdb
(
t0
*
testing
.
T
,
rawcache
bool
)
*
tPersistentDB
{
t0
.
Helper
()
t0
.
Helper
()
t
:=
&
tPersistentDB
{
T
:
t0
}
t
:=
&
tPersistentDB
{
T
:
t0
}
X
:=
t
.
fatalif
X
:=
t
.
fatalif
work
,
err
:=
ioutil
.
TempDir
(
""
,
"t-persistent"
);
X
(
err
)
work
,
err
:=
ioutil
.
TempDir
(
""
,
"t-persistent"
);
X
(
err
)
t
.
work
=
work
t
.
work
=
work
t
.
zurl
=
work
+
"
1/
.fs"
t
.
zurl
=
work
+
"
/1
.fs"
finishok
:=
false
finishok
:=
false
defer
func
()
{
defer
func
()
{
...
@@ -432,10 +431,9 @@ func TestPersistentDB(t *testing.T) {
...
@@ -432,10 +431,9 @@ func TestPersistentDB(t *testing.T) {
}
}
func
testPersistentDB
(
t0
*
testing
.
T
,
rawcache
bool
)
{
func
testPersistentDB
(
t0
*
testing
.
T
,
rawcache
bool
)
{
X
:=
exc
.
Raiseif
assert
:=
assert
.
New
(
t0
)
assert
:=
assert
.
New
(
t0
)
tdb
:=
testdb
(
t0
)
tdb
:=
testdb
(
t0
,
rawcache
)
defer
tdb
.
Close
()
defer
tdb
.
Close
()
at0
:=
tdb
.
head
at0
:=
tdb
.
head
...
...
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