Skip to content

Commit

Permalink
[FIXED] Prematurely closing TCP conn when getting random addr in test (
Browse files Browse the repository at this point in the history
…#1298)

Signed-off-by: Piotr Piotrowski <[email protected]>
  • Loading branch information
piotrpio authored Jun 7, 2023
1 parent 0d68857 commit 8f2b734
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion jetstream/test/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ func setupJSClusterWithSize(t *testing.T, clusterName string, size int) []*jsSer
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
defer l.Close()

addr := l.Addr()
host := addr.(*net.TCPAddr).IP.String()
Expand Down
1 change: 0 additions & 1 deletion test/js_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5578,7 +5578,6 @@ func setupJSClusterWithSize(t *testing.T, clusterName string, size int) []*jsSer
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
defer l.Close()

addr := l.Addr()
host := addr.(*net.TCPAddr).IP.String()
Expand Down

0 comments on commit 8f2b734

Please sign in to comment.