@@ -36,6 +36,7 @@ var _ = Describe("Clients go offline normally and abnormally", func() {
36
36
It ("number of hosts should be ok" , Label ("host" , "leave" ), func () {
37
37
getHostCountFromScheduler := func (schedulerClient schedulerclient.V2 ) (hostCount int ) {
38
38
response , err := schedulerClient .ListHosts (context .Background ())
39
+ fmt .Println ("response:" )
39
40
fmt .Println (response , err )
40
41
Expect (err ).NotTo (HaveOccurred ())
41
42
@@ -58,15 +59,15 @@ var _ = Describe("Clients go offline normally and abnormally", func() {
58
59
hostCount := util .Servers [util .SeedClientServerName ].Replicas + util .Servers [util .ClientServerName ].Replicas
59
60
Expect (getHostCountFromScheduler (schedulerClient )).To (Equal (hostCount ))
60
61
61
- podName , err := util .GetClientPodName ()
62
+ podName , err := util .GetClientPodName (1 )
62
63
Expect (err ).NotTo (HaveOccurred ())
63
64
64
65
out , err := util .KubeCtlCommand ("-n" , util .DragonflyNamespace , "delete" , "pod" , podName ).CombinedOutput ()
65
66
fmt .Println (string (out ))
66
67
Expect (err ).NotTo (HaveOccurred ())
67
68
Expect (getHostCountFromScheduler (schedulerClient )).To (Equal (hostCount ))
68
69
69
- podName , err = util .GetClientPodName ()
70
+ podName , err = util .GetClientPodName (1 )
70
71
Expect (err ).NotTo (HaveOccurred ())
71
72
72
73
out , err = util .KubeCtlCommand ("-n" , util .DragonflyNamespace , "delete" , "pod" , podName , "--force" , "--grace-period=0" ).CombinedOutput ()
0 commit comments