Skip to content

Commit

Permalink
Add comment, per review request.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewstevenson88 committed Jan 20, 2024
1 parent 37a0d44 commit e8068f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions credentials/alts/alts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,10 @@ func establishAltsConnection(t *testing.T, handshakerAddress, serverAddress stri
if !success {
t.Fatalf("c.UnaryCall() timed out after %v", defaultTestShortTimeout)
}

// Check that peer.AuthInfo was populated with an ALTS AuthInfo
// instance. As a sanity check, also verify that the AuthType() and
// ApplicationProtocol() have the expected values.
if got, want := peer.AuthInfo.AuthType(), "alts"; got != want {
t.Errorf("authInfo.AuthType() = %s, want = %s", got, want)
}
Expand Down

0 comments on commit e8068f8

Please sign in to comment.