chiark / gitweb /
at-hidden: Add some more synch, just to complete things
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 25 Apr 2022 00:02:21 +0000 (01:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 25 Apr 2022 00:31:17 +0000 (01:31 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-hidden.rs

index cfd4c8141665f377fd1592173b5b6e815f3b3012..b5232ded4c75cfd561a8664f86c1e04af4c9b96e 100644 (file)
@@ -2,10 +2,6 @@
 // SPDX-License-Identifier: AGPL-3.0-or-later
 // There is NO WARRANTY.
 
-#![allow(dead_code)]
-#![allow(unused_mut)]
-#![allow(unused_variables)]
-
 use crate::*;
 
 type Ctx = UsualCtx;
@@ -39,6 +35,7 @@ impl Ctx {
 
     self.su().mgmt_conn().cmd(&MC::SetFakeTime(FakeTimeSpec(Some(6000))))?;
     alice.synch()?;
+    bob.synch()?;
     alice.api_piece(GH::With, PuSynch(&mut (&mut a_pieces, die_red)),
                     ("k", json!({ "opname": "roll",
                                    "wrc": WRC::UpdateSvg })))?;
@@ -46,6 +43,8 @@ impl Ctx {
     alice.api_piece(GH::With, PuSynch(&mut (&mut a_pieces, hand)),
                     ("k", json!({ "opname": "deactivate",
                                    "wrc": WRC::Unpredictable })))?;
+    alice.synch()?;
+    bob.synch()?;
   }
 }