From cba4d96bb712041d3251a3bc55ad4988e69d01b7 Mon Sep 17 00:00:00 2001 From: Harshit Gangal Date: Mon, 24 Mar 2025 19:15:09 +0530 Subject: [PATCH] test: reduce commit wait time flaky test TestReadingUnresolvedTransactions Signed-off-by: Harshit Gangal --- go/test/endtoend/transaction/twopc/twopc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/test/endtoend/transaction/twopc/twopc_test.go b/go/test/endtoend/transaction/twopc/twopc_test.go index 89dfe2c3548..6f0ed1b3a69 100644 --- a/go/test/endtoend/transaction/twopc/twopc_test.go +++ b/go/test/endtoend/transaction/twopc/twopc_test.go @@ -1065,7 +1065,7 @@ func TestReadingUnresolvedTransactions(t *testing.T) { // We want to delay the commit on one of the shards to simulate slow commits on a shard. twopcutil.WriteTestCommunicationFile(t, twopcutil.DebugDelayCommitShard, "80-") defer twopcutil.DeleteFile(twopcutil.DebugDelayCommitShard) - twopcutil.WriteTestCommunicationFile(t, twopcutil.DebugDelayCommitTime, "5") + twopcutil.WriteTestCommunicationFile(t, twopcutil.DebugDelayCommitTime, "2") defer twopcutil.DeleteFile(twopcutil.DebugDelayCommitTime) // We will execute a commit in a go routine, because we know it will take some time to complete. // While the commit is ongoing, we would like to check that we see the unresolved transaction.