Explorar el Código

fix a broken test

Darien Raymond hace 7 años
padre
commit
729e448a35
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)