github.com/Hnampk/fabric@v2.1.1+incompatible/gossip/util/grpc_test.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package util 8 9 import ( 10 "testing" 11 12 "github.com/stretchr/testify/assert" 13 ) 14 15 func TestCreateGRPCLayer(t *testing.T) { 16 port, gRPCServer, certs, secureDialOpts, dialOpts := CreateGRPCLayer() 17 assert.NotNil(t, port) 18 assert.NotNil(t, gRPCServer) 19 assert.NotNil(t, certs) 20 assert.NotNil(t, secureDialOpts) 21 assert.NotNil(t, dialOpts) 22 }