Commit 9031b2c6 authored by ztelur's avatar ztelur

fix linter problem

parent 2fc80bb1
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment