Browse Source

fix a broken test

Darien Raymond 7 năm trước cách đây
mục cha
commit
729e448a35
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)