Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 8e24b47

Browse files
committed
test: deflake heartbeat test
Change-Id: I658e256a8b9572efb4f0ed043bd2ea5bfd496ea9
1 parent b724bfa commit 8e24b47

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

  • google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session

google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,15 @@ void testHeartbeat() throws Exception {
440440
SessionParametersResponse.newBuilder()
441441
.setKeepAlive(Durations.fromMillis(keepAliveDurationMs))
442442
.build())
443-
.putVrpcActions(0, ActionList.getDefaultInstance())
443+
.putVrpcActions(
444+
0,
445+
ActionList.newBuilder()
446+
.addActions(
447+
Action.newBuilder()
448+
.setDelay(Durations.fromMillis(500))
449+
.setResponse(VirtualRpcResponse.getDefaultInstance())
450+
.build())
451+
.build())
444452
.build()
445453
.toByteString())
446454
.build();

0 commit comments

Comments
 (0)