Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gostnops
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
gostnops
Commits
9031b2c6
Commit
9031b2c6
authored
Feb 10, 2021
by
ztelur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix linter problem
parent
2fc80bb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
client_test.go
remoting/etcd3/client_test.go
+4
-5
No files found.
remoting/etcd3/client_test.go
View file @
9031b2c6
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
package
etcdv3
package
etcdv3
import
(
import
(
"log"
"net/url"
"net/url"
"os"
"os"
"path"
"path"
...
@@ -98,7 +97,7 @@ func (suite *ClientTestSuite) SetupSuite() {
...
@@ -98,7 +97,7 @@ func (suite *ClientTestSuite) SetupSuite() {
cfg
.
Dir
=
defaultEtcdV3WorkDir
cfg
.
Dir
=
defaultEtcdV3WorkDir
e
,
err
:=
embed
.
StartEtcd
(
cfg
)
e
,
err
:=
embed
.
StartEtcd
(
cfg
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Fatal
(
err
)
t
.
Fatal
(
err
)
}
}
select
{
select
{
case
<-
e
.
Server
.
ReadyNotify
()
:
case
<-
e
.
Server
.
ReadyNotify
()
:
...
@@ -146,7 +145,7 @@ func (suite *ClientTestSuite) TestClientClose() {
...
@@ -146,7 +145,7 @@ func (suite *ClientTestSuite) TestClientClose() {
defer
c
.
Close
()
defer
c
.
Close
()
if
c
.
rawClient
.
ActiveConnection
()
.
GetState
()
!=
connectivity
.
Ready
{
if
c
.
rawClient
.
ActiveConnection
()
.
GetState
()
!=
connectivity
.
Ready
{
log
.
Fatal
(
suite
.
client
.
rawClient
.
ActiveConnection
()
.
GetState
())
t
.
Fatal
(
suite
.
client
.
rawClient
.
ActiveConnection
()
.
GetState
())
}
}
}
}
...
@@ -299,7 +298,7 @@ func (suite *ClientTestSuite) TestClientWatch() {
...
@@ -299,7 +298,7 @@ func (suite *ClientTestSuite) TestClientWatch() {
wc
,
err
:=
c
.
watch
(
prefix
)
wc
,
err
:=
c
.
watch
(
prefix
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Fatal
(
err
)
assert
.
Error
(
t
,
err
)
}
}
events
:=
make
([]
mvccpb
.
Event
,
0
)
events
:=
make
([]
mvccpb
.
Event
,
0
)
...
@@ -359,7 +358,7 @@ func (suite *ClientTestSuite) TestClientRegisterTemp() {
...
@@ -359,7 +358,7 @@ func (suite *ClientTestSuite) TestClientRegisterTemp() {
completePath
:=
path
.
Join
(
"scott"
,
"wang"
)
completePath
:=
path
.
Join
(
"scott"
,
"wang"
)
wc
,
err
:=
observeC
.
watch
(
completePath
)
wc
,
err
:=
observeC
.
watch
(
completePath
)
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Fatal
(
err
)
assert
.
Error
(
t
,
err
)
}
}
events
:=
make
([]
mvccpb
.
Event
,
0
)
events
:=
make
([]
mvccpb
.
Event
,
0
)
...
...
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