Gyu-Ho Lee 9 лет назад
Родитель
Сommit
63c13e8b98
1 измененных файлов с 2 добавлено и 1 удалено
  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)
 	}