mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: remove unnecessary type conversion
Fixes go 'unconvert' test.
This commit is contained in:
parent
c836e37a83
commit
ac057951cc
@ -130,7 +130,7 @@ func TestMoveLeaderToLearnerError(t *testing.T) {
|
||||
learnerID := learners[0].ID
|
||||
leaderIdx := clus.WaitLeader(t)
|
||||
cli := clus.Client(leaderIdx)
|
||||
_, err = cli.MoveLeader(context.Background(), uint64(learnerID))
|
||||
_, err = cli.MoveLeader(context.Background(), learnerID)
|
||||
if err == nil {
|
||||
t.Fatalf("expecting leader transfer to learner to fail, got no error")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user