good morning!!!!

Skip to content
Snippets Groups Projects
Commit 9d5e10f5 authored by Janoš Guljaš's avatar Janoš Guljaš Committed by Viktor Trón
Browse files

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

parent e38b227c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment