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
interface-go-dms3-core
Commits
5d6a474f
Commit
5d6a474f
authored
Mar 26, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: fix unused variable lints
parent
a7d4a719
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
tests/object.go
tests/object.go
+8
-2
No files found.
tests/object.go
View file @
5d6a474f
...
...
@@ -296,7 +296,7 @@ func (tp *provider) TestObjectAddLinkCreate(t *testing.T) {
t
.
Fatal
(
err
)
}
p3
,
err
:
=
api
.
Object
()
.
AddLink
(
ctx
,
p2
,
"abc/d"
,
p2
)
_
,
err
=
api
.
Object
()
.
AddLink
(
ctx
,
p2
,
"abc/d"
,
p2
)
if
err
==
nil
{
t
.
Fatal
(
"expected an error"
)
}
...
...
@@ -304,7 +304,7 @@ func (tp *provider) TestObjectAddLinkCreate(t *testing.T) {
t
.
Fatalf
(
"unexpected error: %s"
,
err
.
Error
())
}
p3
,
err
=
api
.
Object
()
.
AddLink
(
ctx
,
p2
,
"abc/d"
,
p2
,
opt
.
Object
.
Create
(
true
))
p3
,
err
:
=
api
.
Object
()
.
AddLink
(
ctx
,
p2
,
"abc/d"
,
p2
,
opt
.
Object
.
Create
(
true
))
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
...
...
@@ -384,6 +384,9 @@ func (tp *provider) TestObjectAddData(t *testing.T) {
}
data
,
err
:=
ioutil
.
ReadAll
(
r
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
if
string
(
data
)
!=
"foobar"
{
t
.
Error
(
"unexpected data"
)
...
...
@@ -414,6 +417,9 @@ func (tp *provider) TestObjectSetData(t *testing.T) {
}
data
,
err
:=
ioutil
.
ReadAll
(
r
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
if
string
(
data
)
!=
"bar"
{
t
.
Error
(
"unexpected 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