diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-03-27 11:42:42 +0200 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-03-27 11:42:42 +0200 |
commit | cd660183bad3757d12beb9c1e9c1afa1d0e03419 (patch) | |
tree | 71225618cd14c4885385db623d18c8774281c6e7 /same/src/test | |
parent | 242ad944762e17fd3636beb40237c870551a653a (diff) |
Fix state bug.0.3
Make sure to copy the state when creating a new master. Using the same
state instance on the master and client is a disaster.
Diffstat (limited to 'same/src/test')
-rw-r--r-- | same/src/test/java/com/orbekk/same/ClientTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/same/src/test/java/com/orbekk/same/ClientTest.java b/same/src/test/java/com/orbekk/same/ClientTest.java index 0e2a278..6c617be 100644 --- a/same/src/test/java/com/orbekk/same/ClientTest.java +++ b/same/src/test/java/com/orbekk/same/ClientTest.java @@ -33,7 +33,7 @@ public class ClientTest { } @Test public void connectedUpdateWorks() throws Exception { - clientS.masterTakeover("master", null, 0); + clientS.masterTakeover("master", null, 1); ClientInterface clientI = client.getInterface(); State.Component component = new State.Component( "TestVariable", 1, "meow"); |