From 9531af737eb242e9f056fa4f52f45fc05329eaa4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 21 May 2021 19:41:17 +0100 Subject: [PATCH] apitest: Use new ds in a couple of places Signed-off-by: Ian Jackson --- apitest/at-bundles.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apitest/at-bundles.rs b/apitest/at-bundles.rs index 3fbf195e..b1e09eb0 100644 --- a/apitest/at-bundles.rs +++ b/apitest/at-bundles.rs @@ -20,8 +20,7 @@ impl Ctx { "big-bundle","duped-example", "chess-purple-cannon", "a purple cannon", &mut |ctx| { - let cmd = ctx.ds().gss("reset modded-spec")?; - ctx.reset_game(&cmd)?; + ctx.reset_game(&ctx.ds().gss("reset modded-spec")?)?; let alice = ctx.connect_player(&ctx.alice)?; let pieces = alice.pieces::()?; @@ -50,10 +49,9 @@ impl Ctx { fn reset_with_bundles(&mut self) { self.clear_reset_to_demo()?; - let cmd = self.ds().gss( + self.reset_game(&self.ds().gss( "reset demo-in-test-bundle @examples@/test-bundle.zip" - )?; - self.reset_game(&cmd)?; + )?)?; self.clear_reset_to_demo()?; } -- 2.30.2