Skip to content

Commit 6af9b99

Browse files
committed
deflake SubscriberImplTest, maybe
1 parent bbd501c commit 6af9b99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/FakeSubscriberServiceImpl.java

+1
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ public void modifyAckDeadline(
264264
public void sendError(Throwable error) throws InterruptedException {
265265
waitForRegistedSubscription();
266266
synchronized (openedStreams) {
267+
waitForOpenedStreams(1);
267268
Stream stream = openedStreams.get(getAndAdvanceCurrentStream());
268269
stream.responseObserver.onError(error);
269270
closeStream(stream);

0 commit comments

Comments
 (0)