Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-ds-flatfs
Commits
135b2edb
Commit
135b2edb
authored
Oct 04, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing: sweet sanity
parent
d2629a26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
flatfs_test.go
flatfs_test.go
+4
-4
No files found.
flatfs_test.go
View file @
135b2edb
...
...
@@ -256,8 +256,8 @@ func testHasNotFound(dirFunc mkShardFunc, t *testing.T) {
if
err
!=
nil
{
t
.
Fatalf
(
"Has fail: %v
\n
"
,
err
)
}
if
g
,
e
:=
found
,
false
;
g
!=
e
{
t
.
Fatal
f
(
"
wrong Has: %v != %v"
,
g
,
e
)
if
found
{
t
.
Fatal
(
"
Has should have returned false"
)
}
}
...
...
@@ -282,8 +282,8 @@ func testHasFound(dirFunc mkShardFunc, t *testing.T) {
if
err
!=
nil
{
t
.
Fatalf
(
"Has fail: %v
\n
"
,
err
)
}
if
g
,
e
:=
found
,
true
;
g
!=
e
{
t
.
Fatal
f
(
"
wrong Has: %v != %v"
,
g
,
e
)
if
!
found
{
t
.
Fatal
(
"
Has should have returned true"
)
}
}
...
...
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