@@ -140,7 +140,7 @@ func mutateExistingAllowed2(t *testing.T, dg *dgo.Dgraph) {
140140
141141func TestMutationsDisallow (t * testing.T ) {
142142 a := testutil .ContainerAddr ("alpha1" , 9080 )
143- conn , err := grpc .Dial (a , grpc .WithTransportCredentials (insecure .NewCredentials ()))
143+ conn , err := grpc .NewClient (a , grpc .WithTransportCredentials (insecure .NewCredentials ()))
144144 if err != nil {
145145 t .Fatalf ("Cannot perform drop all op: %s" , err .Error ())
146146 }
@@ -158,14 +158,14 @@ func TestMutationsDisallow(t *testing.T) {
158158
159159func TestMutationsStrict (t * testing.T ) {
160160 a1 := testutil .ContainerAddr ("alpha2" , 9080 )
161- conn1 , err := grpc .Dial (a1 , grpc .WithTransportCredentials (insecure .NewCredentials ()))
161+ conn1 , err := grpc .NewClient (a1 , grpc .WithTransportCredentials (insecure .NewCredentials ()))
162162 if err != nil {
163163 t .Fatalf ("Cannot perform drop all op: %s" , err .Error ())
164164 }
165165 defer conn1 .Close ()
166166
167167 a2 := testutil .ContainerAddr ("alpha3" , 9080 )
168- conn2 , err := grpc .Dial (a2 , grpc .WithTransportCredentials (insecure .NewCredentials ()))
168+ conn2 , err := grpc .NewClient (a2 , grpc .WithTransportCredentials (insecure .NewCredentials ()))
169169 if err != nil {
170170 t .Fatalf ("Cannot perform drop all op: %s" , err .Error ())
171171 }
0 commit comments