Browse Source

integration: remove unnecessary type conversion

Fixes go 'unconvert' test.
Jingyi Hu 6 years ago
parent
commit
ac057951cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      integration/v3_leadership_test.go

+ 1 - 1
integration/v3_leadership_test.go

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