Skip to content

Commit

Permalink
[FAB-11659] Fabric UT Failure
Browse files Browse the repository at this point in the history
func TestSetServerRootCAs, TestSetMessageSize and
TestNewConnection uses same ports 8358/8359, which causes UT failure.

This PR update ports used in TestSetServerRootCAs & TestSetMessageSize
to 18358/18359 respectively.

Change-Id: I8634c5b768060e7201c4dc46889e9b7741cce50a
Signed-off-by: Krishna Harsha Voora <krishvoor@in.ibm.com>
  • Loading branch information
krishvoor committed Aug 20, 2018
1 parent 8186e9c commit c47bcd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/comm/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func TestSetServerRootCAs(t *testing.T) {
}

// set up test TLS server
address := "localhost:8358"
address := "localhost:18358"
lis, err := net.Listen("tcp", address)
if err != nil {
t.Fatalf("failed to create listener for test server: %v", err)
Expand Down Expand Up @@ -430,7 +430,7 @@ func TestSetServerRootCAs(t *testing.T) {

func TestSetMessageSize(t *testing.T) {
t.Parallel()
address := "localhost:8359"
address := "localhost:18359"

// setup test server
srv, err := comm.NewGRPCServer(address, comm.ServerConfig{})
Expand Down

0 comments on commit c47bcd5

Please sign in to comment.