Przeglądaj źródła

fix a broken test

Darien Raymond 7 lat temu
rodzic
commit
729e448a35
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      testing/scenarios/command_test.go

+ 1 - 1
testing/scenarios/command_test.go

@@ -262,7 +262,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
 
 	servers, err := InitializeServerConfigs(serverConfig, clientConfig)
 	common.Must(err)
-	CloseAllServers(servers)
+	defer CloseAllServers(servers)
 
 	if err := testTCPConn(clientPort, 1024, time.Second*5)(); err != nil {
 		t.Fatal(err)