Skip to content

Commit

Permalink
fix: use of closed connection
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshan committed Feb 14, 2022
1 parent a775688 commit 06fdb99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@ func (s *clientTestingSuite) TearDownSuite(c *check.C) {
func (s *clientTestingSuite) TestClientCall(c *check.C) {
srv := grpc.NewServer()
hello.RegisterHelloServer(srv, &helloServer{})
listen, err := net.Listen("tcp", "0.0.0.0:0")
listen, err := net.Listen("tcp", "0.0.0.0:58661")
if err != nil {
log.Fatalf("Failed to listen: %v", err)
}
log.Printf("success to listen on %s\n", listen.Addr())
defer listen.Close()
pSrv, err := polaris.Register(srv, listen,
polaris.WithServerApplication(serverSvc), polaris.WithServerNamespace(serverNamespace), polaris.WithTTL(2))
if nil != err {
Expand Down

0 comments on commit 06fdb99

Please sign in to comment.