Skip to content

Commit

Permalink
Fix S2A E2E greeter client (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryanfsdf committed Jul 29, 2020
1 parent 4640c37 commit 34b2ec4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion security/s2a/examples/e2e_client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func main() {

// Set up the client-side S2A transport credentials.
clientOpts := &s2a.ClientOptions{
LocalIdentity: s2a.NewHostname("local_identity"),
HandshakerServiceAddress: *s2aServerAddr,
}
creds, err := s2a.NewClientCreds(clientOpts)
Expand All @@ -63,7 +64,7 @@ func main() {
if err != nil {
log.Fatalf("could not greet: %v", err)
}
if r.String() != "Hello, S2A team!" {
if r.GetMessage() != "Hello, S2A team!" {
os.Exit(1)
}
log.Printf("Greeting: %s", r.GetMessage())
Expand Down

0 comments on commit 34b2ec4

Please sign in to comment.