Skip to content

Commit

Permalink
session: fix unstable test TestStaleReadNoExtraTSORequest (#42101)
Browse files Browse the repository at this point in the history
close #42100
  • Loading branch information
tangenta authored Mar 10, 2023
1 parent 73bd2d1 commit a273039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -3711,7 +3711,7 @@ func (s *session) PrepareTSFuture(ctx context.Context, future oracle.Future, sco
}

failpoint.Inject("assertTSONotRequest", func() {
if _, ok := future.(sessiontxn.ConstantFuture); !ok {
if _, ok := future.(sessiontxn.ConstantFuture); !ok && !s.isInternal() {
panic("tso shouldn't be requested")
}
})
Expand Down

0 comments on commit a273039

Please sign in to comment.