Browse Source

Merge pull request #5704 from gyuho/agent_fix

etcd-agent: fix test
Gyu-Ho Lee 9 years ago
parent
commit
8bb0ce54e6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tools/functional-tester/etcd-agent/agent_test.go

+ 2 - 1
tools/functional-tester/etcd-agent/agent_test.go

@@ -18,6 +18,7 @@ import (
 	"io/ioutil"
 	"os"
 	"path/filepath"
+	"syscall"
 	"testing"
 )
 
@@ -46,7 +47,7 @@ func TestAgentRestart(t *testing.T) {
 		t.Fatal(err)
 	}
 
-	err = a.stop()
+	err = a.stopWithSig(syscall.SIGTERM)
 	if err != nil {
 		t.Fatal(err)
 	}