Skip to content

Commit

Permalink
Merge pull request #124583 from aroradaman/e2e-net-dial-from-container
Browse files Browse the repository at this point in the history
e2e/framework network: exit early in DialFromContainer
  • Loading branch information
k8s-ci-robot committed Apr 27, 2024
2 parents 0b9118b + 20d335a commit 7d880fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/e2e/framework/network/utils.go
Expand Up @@ -325,6 +325,12 @@ func (config *NetworkingTestConfig) DialFromContainer(ctx context.Context, proto
responses.Insert(trimmed)
}
}
if responses.Difference(expectedResponses).Len() > 0 {
returnMsg := fmt.Errorf("received unexpected responses... \nAttempt %d\nCommand %v\nretrieved %v\nexpected %v", i, cmd, responses, expectedResponses)
framework.Logf("encountered error during dial (%v)", returnMsg)
return returnMsg
}

framework.Logf("Waiting for responses: %v", expectedResponses.Difference(responses))

// Check against i+1 so we exit if minTries == maxTries.
Expand Down

0 comments on commit 7d880fd

Please sign in to comment.