Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
aranjans committed Jun 6, 2024
1 parent 652c1a4 commit dab452f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions credentials/alts/internal/handshaker/service/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
package service

import (
"google.golang.org/grpc"
"testing"

grpc "google.golang.org/grpc"
)

const (
Expand All @@ -31,10 +30,10 @@ const (

// TestDial verifies the behavior of the Dial function in managing gRPC connections
// and checks the below scenarios:
// - First call to Dial with an address creates a new connection and stores it.
// - Second call to Dial with the same address returns the existing connection
// - First call to Dial with an address creates a new connection and stores it.
// - Second call to Dial with the same address returns the existing connection
// and expects the returned connection matching with ƒirst connection.
// - Third call to Dial with a different address creates a separate new connection
// - Third call to Dial with a different address creates a separate new connection
// and expects a different connection from connnection1 and connection2.
func TestDial(t *testing.T) {
temp := hsDialer
Expand Down

0 comments on commit dab452f

Please sign in to comment.