Skip to content
Snippets Groups Projects
Commit ee59b392 authored by scott.wang's avatar scott.wang
Browse files

etcdv3 unit test, adapte for windows

parent 733aa27a
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,8 @@
package etcdv3
import (
"fmt"
"net/url"
"os/exec"
"os"
"path"
"reflect"
"strings"
......@@ -115,7 +114,7 @@ func (suite *ClientTestSuite) SetupSuite() {
// stop etcd server
func (suite *ClientTestSuite) TearDownSuite() {
suite.etcd.Close()
if err := exec.Command("rm", "-rf", defaultEtcdV3WorkDir).Run(); err != nil {
if err := os.RemoveAll(defaultEtcdV3WorkDir); err != nil {
suite.FailNow(err.Error())
}
}
......@@ -141,8 +140,6 @@ func (suite *ClientTestSuite) SetupTest() {
func (suite *ClientTestSuite) TestClientClose() {
fmt.Println("called client close")
c := suite.client
t := suite.T()
......@@ -154,8 +151,6 @@ func (suite *ClientTestSuite) TestClientClose() {
func (suite *ClientTestSuite) TestClientValid() {
fmt.Println("called client valid")
c := suite.client
t := suite.T()
......
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