Skip to content

Commit

Permalink
Provide fake endoint in tests
Browse files Browse the repository at this point in the history
With grpc/grpc-go#5732 the grpc library
validates the presence of the endpoint information:
> client: return an error from Dial if an empty target is passed and no custom
> dialer is present; the ClientConn would otherwise be unable to connect and perform RPCs
  • Loading branch information
silvestre committed Jan 11, 2023
1 parent c26c2f6 commit b586918
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -59,6 +59,7 @@ var _ = SynchronizedBeforeSuite(func() []byte {
CertFile: filepath.Join(testCertDir, "metron.crt"),
CACertFile: filepath.Join(testCertDir, "loggregator-ca.crt"),
},
MetronAddress: "invalid-host-name-blah:12345",
}
serverConfig := config.ServerConfig{
Port: 2222 + GinkgoParallelProcess(),
Expand Down
Expand Up @@ -58,6 +58,7 @@ var _ = SynchronizedBeforeSuite(func() []byte {
CertFile: filepath.Join(testCertDir, "metron.crt"),
CACertFile: filepath.Join(testCertDir, "loggregator-ca.crt"),
},
MetronAddress: "invalid-host-name-blah:12345",
}
serverConfig := config.ServerConfig{
Port: 2222 + GinkgoParallelProcess(),
Expand Down

0 comments on commit b586918

Please sign in to comment.