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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
2bd98841
Commit
2bd98841
authored
Mar 06, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5c5ba580
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
t/neo/storage/fs1/filestorage_test.go
t/neo/storage/fs1/filestorage_test.go
+2
-3
No files found.
t/neo/storage/fs1/filestorage_test.go
View file @
2bd98841
...
...
@@ -14,7 +14,6 @@
package
fs1
import
(
"bytes"
"fmt"
"io"
"reflect"
...
...
@@ -76,7 +75,7 @@ func checkLoad(t *testing.T, fs *FileStorage, xid zodb.Xid, expect oidLoadedOk)
if
tid
!=
expect
.
tid
{
t
.
Errorf
(
"load %v: returned tid unexpected: %v ; want: %v"
,
xid
,
tid
,
expect
.
tid
)
}
if
!
bytes
.
Equal
(
data
,
expect
.
data
)
{
// XXX -> reflect.DeepEqual
if
!
reflect
.
DeepEqual
(
data
,
expect
.
data
)
{
// NOTE reflect to catch nil != ""
t
.
Errorf
(
"load %v: different data:
\n
have: %q
\n
want: %q"
,
xid
,
data
,
expect
.
data
)
}
}
...
...
@@ -220,7 +219,7 @@ func testIterate(t *testing.T, fs *FileStorage, tidMin, tidMax zodb.Tid, expectv
if
datai
.
Tid
!=
dh
.
Tid
{
dataErrorf
(
"tid mismatch: have %v; want %v"
,
datai
.
Tid
,
dh
.
Tid
)
}
if
!
bytes
.
Equal
(
datai
.
Data
,
txe
.
Data
())
{
if
!
reflect
.
DeepEqual
(
datai
.
Data
,
txe
.
Data
())
{
// NOTE reflect to catch nil != ""
dataErrorf
(
"data mismatch:
\n
have %q
\n
want %q"
,
datai
.
Data
,
txe
.
Data
())
}
...
...
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