Skip to content

Commit

Permalink
Merge pull request #1725 from kl52752/affinity-test-logs
Browse files Browse the repository at this point in the history
Add backend service name into affinity check error
  • Loading branch information
k8s-ci-robot authored Jun 8, 2022
2 parents cdf339e + 8e6955b commit 5411e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/e2e-test/affinity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,11 @@ func verifyAffinity(t *testing.T, gclb *fuzz.GCLB, svcNamespace, svcName string,
continue
}
if bs.GA.SessionAffinity != expect {
return fmt.Errorf("verifyAffinity(..., %q, %q, ...) = %s, want %s (SessionAffinity)",
return fmt.Errorf("Backend Service %s verifyAffinity(..., %q, %q, ...) = %s, want %s (SessionAffinity)", bs.GA.Name,
svcNamespace, svcName, bs.GA.SessionAffinity, expect)
}
if bs.GA.AffinityCookieTtlSec != ttl {
return fmt.Errorf("verifyAffinity(..., %q, %q, ...) = %v, want %v (AffinityCookieTtlSec)",
return fmt.Errorf("Backend Service %s verifyAffinity(..., %q, %q, ...) = %v, want %v (AffinityCookieTtlSec)", bs.GA.Name,
svcNamespace, svcName, bs.GA.AffinityCookieTtlSec, ttl)
}
}
Expand Down

0 comments on commit 5411e6d

Please sign in to comment.