cmd/swarm/global-store: use kill instead interrupt in tests (#19142)

pull/19089/head
Janoš Guljaš 6 years ago committed by Viktor Trón
parent e38b227ce6
commit 9d5e10f5bb
  1. 4
      cmd/swarm/global-store/global_store_test.go

@ -60,7 +60,7 @@ func TestHTTP_Database(t *testing.T) {
func testHTTP(t *testing.T, put bool, args ...string) {
addr := findFreeTCPAddress(t)
testCmd := runGlobalStore(t, append([]string{"http", "--addr", addr}, args...)...)
defer testCmd.Interrupt()
defer testCmd.Kill()
client, err := rpc.DialHTTP("http://" + addr)
if err != nil {
@ -135,7 +135,7 @@ func TestWebsocket_Database(t *testing.T) {
func testWebsocket(t *testing.T, put bool, args ...string) {
addr := findFreeTCPAddress(t)
testCmd := runGlobalStore(t, append([]string{"ws", "--addr", addr}, args...)...)
defer testCmd.Interrupt()
defer testCmd.Kill()
var client *rpc.Client
var err error

Loading…
Cancel
Save