googleapis / googleapis/google-cloud-java

[sdk-platform-java] Investigate using a Mock gRPC Channel for InstantiatingGrpcChannelProviderTest

Open
#12,428 1 comment 0 reactions 0 assignees View on GitHub
priority: p3 type: cleanup
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

Following the flaky test reported in here: https://github.com/googleapis/sdk-platform-java/issues/2852, we discovered that some unit tests are creating a gRPC channel. Ideally, we would like to use a mock or stub instead of a real gRPC channel.

This reduces the change for flaky behavior and also would help speed up the tests (creating a channel is ~500ms).

This ticket is to investigate whether we can use a mock or stub instead of an actual channel and implement the change.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.