From 41ff34bafec95b45968f1e74f14ba6cdcb62531d Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Tue, 16 Apr 2024 16:25:36 +0800 Subject: [PATCH] *: make `TestLogicalOverflow` stable (#8075) close tikv/pd#7017 Signed-off-by: Ryan Leung --- tests/server/tso/global_tso_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/server/tso/global_tso_test.go b/tests/server/tso/global_tso_test.go index f705bdf12b5..8dd98b1d628 100644 --- a/tests/server/tso/global_tso_test.go +++ b/tests/server/tso/global_tso_test.go @@ -165,7 +165,7 @@ func TestLogicalOverflow(t *testing.T) { re.NoError(err) if i == 1 { // the 2nd request may (but not must) overflow, as max logical interval is 262144 - re.Less(time.Since(begin), updateInterval+20*time.Millisecond) // additional 20ms for gRPC latency + re.Less(time.Since(begin), updateInterval+50*time.Millisecond) // additional 50ms for gRPC latency } } // the 3rd request must overflow