From c0a667fa53a27c184d58f764df66fba0cf3b98d6 Mon Sep 17 00:00:00 2001 From: Andrey Lazarko Date: Mon, 4 Nov 2024 14:57:43 +0100 Subject: [PATCH] post-review: test changes rolled back --- gclient/tests/memory_dump.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gclient/tests/memory_dump.rs b/gclient/tests/memory_dump.rs index 96a024792b2..861967f9dba 100644 --- a/gclient/tests/memory_dump.rs +++ b/gclient/tests/memory_dump.rs @@ -89,27 +89,32 @@ async fn memory_dump() -> Result<()> { .await?; assert!(listener.message_processed(message_id).await?.succeed()); - assert_eq!(charge_10(&api, program_id, &mut listener).await?, ""); + assert_eq!( + charge_10(&api, program_id, &mut listener).await.unwrap(), + "" + ); let cleanup = CleanupFolderOnDrop { path: "./296c6962726".to_string(), }; api.save_program_memory_dump_at(program_id, None, "./296c6962726/demo_custom.dump") - .await?; + .await + .unwrap(); assert_eq!( - charge_10(&api, program_id, &mut listener).await?, + charge_10(&api, program_id, &mut listener).await.unwrap(), "Discharged: 20" ); api.replace_program_memory(program_id, "./296c6962726/demo_custom.dump") - .await?; + .await + .unwrap(); drop(cleanup); assert_eq!( - charge_10(&api, program_id, &mut listener).await?, + charge_10(&api, program_id, &mut listener).await.unwrap(), "Discharged: 20" );