Skip to content

Commit

Permalink
*: make TestLogicalOverflow stable (#8075)
Browse files Browse the repository at this point in the history
close #7017

Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx authored Apr 16, 2024
1 parent 2a4a7b7 commit 41ff34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/server/tso/global_tso_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41ff34b

Please sign in to comment.