Fix acceptance tests (after pods status request change) (#545)

This commit is contained in:
gadotroee
2021-12-19 13:46:14 +02:00
committed by GitHub
parent cba0c682e5
commit 2d78785558
4 changed files with 17 additions and 33 deletions

View File

@@ -304,11 +304,10 @@ func cleanupCommand(cmd *exec.Cmd) error {
}
func getPods(tapStatusInterface interface{}) ([]map[string]interface{}, error) {
tapStatus := tapStatusInterface.(map[string]interface{})
podsInterface := tapStatus["pods"].([]interface{})
tapPodsInterface := tapStatusInterface.([]interface{})
var pods []map[string]interface{}
for _, podInterface := range podsInterface {
for _, podInterface := range tapPodsInterface {
pods = append(pods, podInterface.(map[string]interface{}))
}