Skip to content

Commit

Permalink
final touchup comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsxGitHub committed Jan 6, 2025
1 parent 9cc56da commit 2bbbf6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gnmi/security_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ func TestALTSConnection(t *testing.T) {
// Subscribe to the exporter and see whether we get an error.
gnmiClient := gpb.NewGNMIClient(conn)
if _, err = gnmiClient.Subscribe(context.Background()); err != nil {
// ALTS is only supported on GCE-based platforms. If we are running on a
// non-GCE platform, we expect to get an error complaining about the
// untrusted platform.
if strings.Contains(err.Error(), alts.ErrUntrustedPlatform.Error()) {
return
}
Expand Down

0 comments on commit 2bbbf6d

Please sign in to comment.