Skip to content

Commit

Permalink
Merge pull request #12407 from tangcong/fix-networkpartition-flaky-test
Browse files Browse the repository at this point in the history
clientv3test: fix network partition flaky test
  • Loading branch information
gyuho committed Oct 20, 2020
2 parents 7c6c2c1 + 0a830c8 commit d5363e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/clientv3/network_partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func TestBalancerUnderNetworkPartitionTxn(t *testing.T) {
func TestBalancerUnderNetworkPartitionLinearizableGetWithLongTimeout(t *testing.T) {
testBalancerUnderNetworkPartition(t, func(cli *clientv3.Client, ctx context.Context) error {
_, err := cli.Get(ctx, "a")
if err == rpctypes.ErrTimeout {
if isClientTimeout(err) || isServerCtxTimeout(err) || err == rpctypes.ErrTimeout {
return errExpected
}
return err
Expand Down

0 comments on commit d5363e3

Please sign in to comment.