Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tikv/client-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 71e5467547e8afe9e9af631d4f67496546a5e5db
Choose a base ref
..
head repository: tikv/client-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e9babb502c377b95706b7e05fef5e39baf23fbc5
Choose a head ref
Showing with 10 additions and 2 deletions.
  1. +10 −2 tikv/kv_test.go
12 changes: 10 additions & 2 deletions tikv/kv_test.go
Original file line number Diff line number Diff line change
@@ -108,8 +108,16 @@ func (s *testKVSuite) TestMinSafeTs() {
testSuite: s,
}
s.store.SetTiKVClient(&mockClient)
// wait for updateSafeTS
time.Sleep(6 * time.Second)

// wait for updateMinSafeTS
var retryCount int
for s.store.GetMinSafeTS(oracle.GlobalTxnScope) != 80 {
time.Sleep(2 * time.Second)
if retryCount > 5 {
break
}
retryCount++
}
s.Require().GreaterOrEqual(mockClient.requestCount, 2)
s.Require().Equal(uint64(80), s.store.GetMinSafeTS(oracle.GlobalTxnScope))
}