File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
credentials/alts/internal/handshaker/service Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ const (
29
29
testAddress2 = "some_address_2"
30
30
)
31
31
32
+ // TestDial verifies the behavior of the Dial function in managing gRPC connections
33
+ // and checks the below scenarios:
34
+ // - First call to Dial with an address creates a new connection and stores it.
35
+ // - Second call to Dial with the same address returns the existing connection
36
+ // and expects the returned connection matching with ƒirst connection.
37
+ // - Third call to Dial with a different address creates a separate new connection
38
+ // and expects a different connection from connnection1 and connection2.
32
39
func TestDial (t * testing.T ) {
33
40
temp := hsDialer
34
41
hsDialer = func (target string , opts ... grpc.DialOption ) (* grpc.ClientConn , error ) {
You can’t perform that action at this time.
0 commit comments