chiark / gitweb /
at-currency: Use synchu to synchronise, to update a_pieces
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 May 2022 18:00:47 +0000 (19:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 May 2022 18:39:26 +0000 (19:39 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-currency.rs

index dd79806a2a9e64018a0a5c642ab2b0d5109db501..1aaa37bfc8090e954adae609904e0d80c4c5f6e4 100644 (file)
@@ -25,10 +25,10 @@ impl Ctx {
     alice.api_piece_op_single(PuSynch((&mut a_pieces, bn)).id(), (
       "multigrab", json!({ "n": 50, 'z': "q000000000" })
     ))?;
-    alice.synch()?;
+    alice.synchu(&mut a_pieces)?;
 
     alice.api_piece(GH::Ungrab, PuSynch((&mut a_pieces, bn)), other_pile)?;
-    alice.synch()?;
+    alice.synchu(&mut a_pieces)?;
 
   }
 }