Skip to content

Commit

Permalink
Print log
Browse files Browse the repository at this point in the history
Signed-off-by: Lubron Zhan <[email protected]>
  • Loading branch information
lubronzhan committed Mar 13, 2024
1 parent 5697b6a commit 351fda7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/machine/machine_controller_intg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package machine_test

import (
"fmt"
"os"

. "github.com/onsi/ginkgo"
Expand Down Expand Up @@ -96,11 +97,15 @@ func intgTestMachineController() {
Eventually(func() int {
err := ctx.Client.Get(ctx.Context, client.ObjectKey{Name: cluster.Namespace + "-" + cluster.Name + "-control-plane", Namespace: cluster.Namespace}, ep)
if err != nil {
fmt.Println("error#############")
return 0
}
fmt.Println(ep)
if len(ep.Subsets) == 0 {
return 0
}
fmt.Println("here????????")
fmt.Println(ep.Subsets[0])
return len(ep.Subsets[0].Addresses)
}).Should(Equal(1))
Expect(ep.Subsets[0].Addresses[0].IP).Should(Equal("1.1.1.1"))
Expand Down

0 comments on commit 351fda7

Please sign in to comment.