Skip to content

Commit d1e15ab

Browse files
author
Xudong Ma
committed
Fix serviceAccountCreds test and computeEngineCreds test.
See grpc#702 for details.
1 parent ef106e0 commit d1e15ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

interop-testing/src/main/java/io/grpc/testing/integration/AbstractTransportTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,8 @@ public void serviceAccountCreds(String jsonKey, InputStream credentialsStream, S
714714
ServiceAccountCredentials.class.cast(GoogleCredentials.fromStream(credentialsStream));
715715
credentials = credentials.createScoped(Arrays.<String>asList(authScope));
716716
TestServiceGrpc.TestServiceBlockingStub stub = blockingStub
717-
.withInterceptors(new ClientAuthInterceptor(credentials, testServiceExecutor));
717+
.withInterceptors(new ClientAuthInterceptor(credentials,
718+
Executors.newSingleThreadExecutor()));
718719
final SimpleRequest request = SimpleRequest.newBuilder()
719720
.setFillUsername(true)
720721
.setFillOauthScope(true)
@@ -746,7 +747,8 @@ public void serviceAccountCreds(String jsonKey, InputStream credentialsStream, S
746747
public void computeEngineCreds(String serviceAccount, String oauthScope) throws Exception {
747748
ComputeEngineCredentials credentials = new ComputeEngineCredentials();
748749
TestServiceGrpc.TestServiceBlockingStub stub = blockingStub
749-
.withInterceptors(new ClientAuthInterceptor(credentials, testServiceExecutor));
750+
.withInterceptors(new ClientAuthInterceptor(credentials,
751+
Executors.newSingleThreadExecutor()));
750752
final SimpleRequest request = SimpleRequest.newBuilder()
751753
.setFillUsername(true)
752754
.setFillOauthScope(true)

0 commit comments

Comments
 (0)