Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobTanenbaum committed Dec 10, 2024
1 parent 8737ae6 commit e8e4ee9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/extended/networking/network_segmentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,17 @@ func runUDNPod(cs clientset.Interface, namespace string, podConfig podConfigurat
if err != nil {
return v1.PodFailed
}
// break out of the printing and return
if updatePod.Status.Phase == v1.PodRunning {
return updatedPod.Status.Phase
}
// otherwise print the reasons
fmt.Printf("-----\n")
fmt.Printf("%s Phase: - %s\n", updatedPod.Name, updatedPod.Status.Phase)
fmt.Printf("%s Message: %s\n", updatedPod.Name, updatedPod.Status.Message)
fmt.Printf("%s Reason: %s\n", udpatedPod.Name, updatedPod.Status.Reason)
fmt.Printf("-------\n")

return updatedPod.Status.Phase
}, 2*time.Minute, 6*time.Second).Should(Equal(v1.PodRunning))
return updatedPod
Expand Down

0 comments on commit e8e4ee9

Please sign in to comment.