Skip to content

Commit

Permalink
Fix retry in tck (#3648)
Browse files Browse the repository at this point in the history
Co-authored-by: Yee <2520865+yixinglu@users.noreply.github.com>
  • Loading branch information
Shylock-Hg and yixinglu authored Jan 6, 2022
1 parent 848d50f commit 35cb7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def return_if_not_leader_changed(resp) -> bool:
return True

err_msg = resp.error_msg()
return err_msg.find('Storage Error: The leader has changed') < 0
return err_msg.find('Please retry later.') < 0


@retry(30, return_if_not_leader_changed)
Expand Down

0 comments on commit 35cb7e5

Please sign in to comment.