From dab452f5b7035efe78935ca237dd2ee5510bbf14 Mon Sep 17 00:00:00 2001 From: Abhishek Ranjan Date: Thu, 6 Jun 2024 19:58:42 +0530 Subject: [PATCH] refactor --- .../alts/internal/handshaker/service/service_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/credentials/alts/internal/handshaker/service/service_test.go b/credentials/alts/internal/handshaker/service/service_test.go index 47044d543218..97a7de7aa079 100644 --- a/credentials/alts/internal/handshaker/service/service_test.go +++ b/credentials/alts/internal/handshaker/service/service_test.go @@ -19,9 +19,8 @@ package service import ( + "google.golang.org/grpc" "testing" - - grpc "google.golang.org/grpc" ) const ( @@ -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