integration: remove unnecessary type conversion

Fixes go 'unconvert' test.
release-3.4
Jingyi Hu 2019-04-17 14:49:07 -07:00
parent c836e37a83
commit ac057951cc
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}