Skip to content

Commit 21dd149

Browse files
committed
fix verify
1 parent c94603d commit 21dd149

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

conformance/utils/echo/pod.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ func compareRequest(exp http.ExpectedResponse, resp Response) error {
134134
// The Istio echo client reports HTTP status codes even for gRPC requests
135135
expectedStatusCodes := make([]int, len(wantResp.StatusCodes))
136136
copy(expectedStatusCodes, wantResp.StatusCodes)
137-
137+
138138
// Map gRPC status 0 (OK) to HTTP 200 if needed
139139
for i, code := range expectedStatusCodes {
140140
if code == 0 {
141141
expectedStatusCodes[i] = 200
142142
}
143143
}
144-
144+
145145
if !slices.Contains(expectedStatusCodes, statusCode) {
146146
return fmt.Errorf("wanted gRPC status code to be one of %v (mapped to HTTP), got %d", wantResp.StatusCodes, statusCode)
147147
}

conformance/utils/weight/weight.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func TestWeightedDistribution(sender RequestSender, expectedWeights map[string]f
7979

8080
// Extract the backend name from the pod name
8181
backendName := extractBackendName(podName)
82-
82+
8383
seenMutex.Lock()
8484
defer seenMutex.Unlock()
8585

@@ -156,7 +156,7 @@ func AddRandomEntropy(addRandomValue func(string) error) error {
156156
if err != nil {
157157
// Fallback to case 0 if crypto/rand fails
158158
addRandomDelay(1000)
159-
return nil
159+
return err
160160
}
161161
random := n.Int64()
162162

0 commit comments

Comments
 (0)