Skip to content

Commit

Permalink
add more log for the test case TestEndpointSwitchResolvesViolation
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Wang <wachao@vmware.com>
  • Loading branch information
ahrtr committed Aug 5, 2022
1 parent 18a87dd commit e02f3f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/clientv3/ordering_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ func TestEndpointSwitchResolvesViolation(t *testing.T) {

t.Logf("Reconfigure client to speak only to the 'partitioned' member")
cli.SetEndpoints(clus.Members[2].GRPCURL())
t.Log("Getting data from the partitioned member...")
_, err = orderingKv.Get(ctx, "foo", clientv3.WithSerializable())
if err != ordering.ErrNoGreaterRev {
t.Fatal("While speaking to partitioned leader, we should get ErrNoGreaterRev error")
t.Fatalf("While speaking to partitioned leader, we should get ErrNoGreaterRev error, %v", err)
}
}

Expand Down

0 comments on commit e02f3f6

Please sign in to comment.