Skip to content

Commit

Permalink
updating comments
Browse files Browse the repository at this point in the history
  • Loading branch information
janardhankrishna-sai committed Dec 23, 2024
1 parent d28f9f8 commit 54321e6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/authority_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,8 @@ func (s) TestColonPortAuthority(t *testing.T) {
authorityMu.Lock()
expectedAuthority = "localhost:" + port
authorityMu.Unlock()
// ss.Start dials, but not the ":[port]" target that is being tested here.
// Dial again, with ":[port]" as the target.
//
// Append "localhost" before calling net.Dial, in case net.Dial on certain
// platforms doesn't work well for address without the IP.
// ss.Start dials the server, but we explicitly test with ":[port]"
// as the target.
cc, err := grpc.NewClient(":"+port, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
t.Fatalf("grpc.NewClient(%q) = %v", ss.Target, err)
Expand Down

0 comments on commit 54321e6

Please sign in to comment.