Skip to content

Commit

Permalink
skip TestXGoogeMetadata if xGoogMetadata missing
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo committed Jul 7, 2023
1 parent 278a519 commit b0db5d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions showcase/echo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ func TestXGoogeMetadata(t *testing.T) {
x := w.FieldByName("internalClient")
y := x.Elem().Elem()
info := y.FieldByName("xGoogMetadata")
if info.IsZero() {
// TODO: Inspect xGoogHeaders for goVersion instead.
return
}

var goVersion string
for _, key := range info.MapKeys() {
Expand Down

0 comments on commit b0db5d7

Please sign in to comment.