From 9d525aa042c6fb4111e88d7913ede66aba6e24db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Wed, 25 Apr 2012 14:37:02 +0200 Subject: Make sure to report the *correct* failed master. --- same/src/test/java/com/orbekk/same/FunctionalTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'same/src/test/java') diff --git a/same/src/test/java/com/orbekk/same/FunctionalTest.java b/same/src/test/java/com/orbekk/same/FunctionalTest.java index 2a73656..7b50b5a 100644 --- a/same/src/test/java/com/orbekk/same/FunctionalTest.java +++ b/same/src/test/java/com/orbekk/same/FunctionalTest.java @@ -147,7 +147,7 @@ public class FunctionalTest { client1.setMasterController(controller); client2.setMasterController(controller); client3.setMasterController(controller); - client1.startMasterElection(); + client1.startMasterElection(master.getMasterInfo()); awaitExecution(); newMaster.performWork(); assertThat(client1.getMaster().getMasterLocation(), is(newMasterLocation)); @@ -176,7 +176,7 @@ public class FunctionalTest { client1.setMasterController(controller); client2.setMasterController(controller); client3.setMasterController(controller); - client1.startMasterElection(); + client1.startMasterElection(master.getMasterInfo()); awaitExecution(); newMaster.performWork(); assertThat(client1.getMaster().getMasterUrl(), is(newMasterUrl)); -- cgit v1.2.3