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
77dfa988
Commit
77dfa988
authored
Mar 02, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0d1ba52e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
t/neo/storage/fs1/filestorage_test.go
t/neo/storage/fs1/filestorage_test.go
+6
-5
No files found.
t/neo/storage/fs1/filestorage_test.go
View file @
77dfa988
...
...
@@ -116,7 +116,7 @@ func TestLoad(t *testing.T) {
tidv
=
append
(
tidv
,
dbe
.
Header
.
Tid
)
}
// XXX
i -> iMin, j -> iMax ?
// XXX
Fatal -> Error
for
i
,
tidMin
:=
range
tidv
{
minv
:=
[]
zodb
.
Tid
{
tidMin
-
1
,
tidMin
,
tidMin
+
1
}
for
j
,
tidMax
:=
range
tidv
{
...
...
@@ -134,28 +134,29 @@ func TestLoad(t *testing.T) {
nsteps
=
0
// j < i and j == i and ii/jj
}
println
(
i
,
j
,
ii
,
jj
,
nsteps
)
for
k
:=
0
;
;
k
++
{
subj
:=
fmt
.
Sprintf
(
"iterating %v..%v: step %v/%v"
,
tmin
,
tmax
,
k
+
1
,
nsteps
)
if
k
>=
nsteps
{
t
.
Error
f
(
"%v: steps overrun"
,
subj
)
t
.
Fatal
f
(
"%v: steps overrun"
,
subj
)
}
txni
,
dataIter
,
err
:=
iter
.
NextTxn
()
if
err
!=
nil
{
if
err
==
io
.
EOF
{
if
k
!=
nsteps
-
1
{
t
.
Error
f
(
"%v: steps underrun"
,
subj
)
t
.
Fatal
f
(
"%v: steps underrun"
,
subj
)
}
break
}
t
.
Error
f
(
"%v: %v"
,
subj
,
err
)
t
.
Fatal
f
(
"%v: %v"
,
subj
,
err
)
}
dbe
:=
_1fs_dbEntryv
[
i
+
k
]
// TODO also check .Pos, .LenPrev, .Len
if
!
reflect
.
DeepEqual
(
*
txni
,
dbe
.
Header
.
TxnInfo
)
{
// XXX fatal temp
t
.
Fatalf
(
"%v: unexpected txn entry:
\n
have: %q
\n
want: %q"
,
subj
,
*
txni
,
dbe
.
Header
.
TxnInfo
)
}
...
...
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