Skip to content

Commit

Permalink
Update region_request_state_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mittalrishabh authored Dec 20, 2024
1 parent 6672ce1 commit c43bc04
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/locate/region_request_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,6 @@ func testStaleRead(s *testRegionCacheStaleReadSuite, r *RegionCacheTestCase, zon
_, successZone, successReadType := s.extractResp(resp)
find := false
if leaderZone {
funcName := runtime.FuncForPC(reflect.ValueOf(r.do).Pointer()).Name()
fmt.Printf("Function name of r.do(): %s\n", funcName)
s.Equal(r.leaderSuccessReadType, successReadType, msg)
for _, z := range r.leaderSuccessReplica {
if z == successZone {
Expand All @@ -564,8 +562,6 @@ func testStaleRead(s *testRegionCacheStaleReadSuite, r *RegionCacheTestCase, zon
}
}
} else {
funcName := runtime.FuncForPC(reflect.ValueOf(r.do).Pointer()).Name()
fmt.Printf("Function name of r.do(): %s\n", funcName)
s.Equal(r.followerSuccessReadType, successReadType)
for _, z := range r.followerSuccessReplica {
if z == successZone {
Expand Down

0 comments on commit c43bc04

Please sign in to comment.