Skip to content

Commit 1e57aca

Browse files
authored
Merge pull request #2909 from panslava/fix-error-log-in-test
Fix shadowing error in tests
2 parents 9644870 + 1dc3a41 commit 1e57aca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/e2e-test/logging_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,11 @@ func TestLogging(t *testing.T) {
170170
gclb, err = fuzz.GCLBForVIP(context.Background(), Framework.Cloud, params)
171171
if err != nil {
172172
t.Logf("Failed to GCP resources for LB with IP = %q: %v", vip, err)
173+
err = fmt.Errorf("failed to GCP resources for LB with IP = %q: %v", vip, err)
173174
return false, nil
174175
}
175-
if err := verifyLogging(t, gclb, s.Namespace, svcName, tc.transition); err != nil {
176+
if err = verifyLogging(t, gclb, s.Namespace, svcName, tc.transition); err != nil {
177+
err = fmt.Errorf("failed to verify logging for LB with IP = %q: %v", vip, err)
176178
return false, nil
177179
}
178180
return true, nil

0 commit comments

Comments
 (0)