googleapis / googleapis/google-cloud-java

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

Aperta
#12,428 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
priority: p3 type: cleanup
Lingua principale
Java
Stelle
2.1k
Fork
1.2k
Merge medio
1g 23h
PR unite (30g)
154

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.