integration: fix compilation for backported Election test

This commit is contained in:
Anthony Romano 2016-09-15 11:45:37 -07:00
parent ee2717493a
commit 73c8fdac53

View File

@ -188,11 +188,8 @@ func TestElectionOnPrefixOfExistingKey(t *testing.T) {
if _, err := cli.Put(context.TODO(), "testa", "value"); err != nil {
t.Fatal(err)
}
s, serr := concurrency.NewSession(cli)
if serr != nil {
t.Fatal(serr)
}
e := concurrency.NewElection(s, "test")
e := concurrency.NewElection(cli, "test")
ctx, cancel := context.WithTimeout(context.TODO(), 5*time.Second)
err := e.Campaign(ctx, "abc")
cancel()